I want to add a variable to a css class. Is it possile? I mean I want to do something like the following: #box[i] { padding: [i]px; } I understand this may not be the right syntax, but I hope you can help me achieve the concept setting my class' properties up to a variable value.
benams
Posts
-
css variables -
regular expressions groupshi, I want to use regular expressions for analyzing a url, but I can't get the regex groups as I would expect them to be. My regular expression is: @"member/filter(.*)(/.+)*" The strings to match: 1) "member/filter-one" 2) "member/filter-two/option" 3) "member/filter-three/option/option" I expect to get the following groups: 1) member/filter-one, /filter-one 2) member/filter-two/option, /filter-two, /option 3) member/filter-three/option/option, /filter-three, /option(with 2 captures) I get the result for the first string, but fore the 2 others I get: 2) member/filter-two/option, /filter-two/option, empty string 3) member/filter-three/option/option, /filter-three/option/option, empty string What can be the issue?
-
GET flash file(.swf) 404 errormy question is if it's possible to display a hidden flash file. is there a way to do it?
-
GET flash file(.swf) 404 errorNice attempt :) but spelling is not the issue. I found the real problem - it was the swf file on the server. The file was hidden, and when I unchecked the hidden checkbox, it got to work fine. You think that there is a chance that the file was hidden deliberately ?
-
GET flash file(.swf) 404 errorHi, I just try to place a flash file in my site, but I see I get the 404 error. I have looked for the flash file on the server and it exist, so I don't thinks it's the issue. I attach the code, and the error as well. The code:
The error: GET http://www.loveandpride.com/FilesDB/View3D/Movie\_objID\_3426\_typeID\_5.swf?NoCashe=1570316002 404 (Not Found) Hope you can help me... Ben
-
Hide my flash in iframesHi, I have a flash map in my site, which cannot be displayed inside iframes in other domains. So what I wnat to do, is to check the domain name when the page is loaded and hide the flash map if it's other than my domain. I have heared that there is a commonly used code for hiding flash in Iphones, that can be useful for me, but I couldn't find it, so maybe sompne can copy the code for me. Thanks, Ben
-
(500) Internal Server Error.Thank you both for your answers. Actually, break points couldn't help me because the application did well on my computer(localhost), the error occurred only when I tried to run it on the server, so I used a try-catch block, captured the exception and inserted it to my database. btw, the error was about file permissions (I had to give the aspnet and network-services accounts read,write & execute permissions)
-
(500) Internal Server Error.Hi, I get the following error when cliking on a button: System.Net.WebException: The remote server returned an error: (500) Internal Server Error. stack trace: [WebException: The remote server returned an error: (500) Internal Server Error.] System.Net.HttpWebRequest.CheckFinalStatus() +677 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139 System.Net.HttpWebRequest.GetResponse() +248 Mediachase.Store.Business.UrlReader.GetHtmlFromUrl(String theurl, String authorizeUserName, String authorizePassword) Mediachase.Store.Business.UrlReader.GetHtmlFromUrl(String theurl) Mediachase.Store.Web.Admin.Module.AdminCampaign.GetHtmlFromUrl(String theurl) Mediachase.Store.Web.Admin.Module.AdminCampaign.get_CampeignBody() Mediachase.Store.Web.Admin.Module.AdminCampaign.SaveChanges() Mediachase.Store.Web.Admin.Module.AdminCampaign.SaveButton_Click(Object sender, EventArgs e) System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33 System.Web.UI.Page.ProcessRequestMain() +1292 I can't understand why it happens, as I really did nothing special (it was OK yesterday, but today it's not). I have tryed recycling pool (in IIS manager) and it didn't help. I have to mention that i use asp.net 1.1
-
Can't see my site's flash in an iframe taghi, I try to add my website to an Iframe, it goes well, but I can't see a flash file which exist in my site and displayed well. my site: http://www.megalim.co.il/ the iframe website; http://www.netravel.co.il/Megalim/
-
javascript delayI think it works, but what if I have to pass parameters to a function? Is there a way to do it?
-
javascript delayI have tried something similar to:
function f(){
$("#" + action + "-submit-message").text("sending...");setTimeout(done(),1000);
}
function done()
{
$("#" + action + "-submit-message").text("sent!");
}but what I get is the "sending..." message permanently(the "sent!" is never displayed)
-
javascript delayI use the following code in order to display a fake sending method that lasts 1 second:
$("#" + action + "-submit-message").text("sending...");
var startTime = new Date().getTime();
while (new Date().getTime() < startTime + 1000);$("#" + action + "-submit-message").text("sent!");
Despite of that, I can see only the "sent!" message in the end of the function, when I expect to see the "sending..." for a second. What can be the problem?
-
Thread.joinHi, I want to understand the concept of the Join method. When I use Thread1.Join() does it mean that Thread1 and the main thread runs simultaneously? If not, I would be happy if you suggest me other method to do it Thank from advance!
-
SQL Paginghi, I'm using an asp.net application with some sql SELECT statements, I want to ask you when is it worthwhile to execute statements with SQL query? I guess that if I use the paging to get 10-rows pages from a 25-rows table, it's not profitable, and I have to do the paging at the server side code. But when my table has 10000 rows, it becomes worthwhile enough. Am I right?
-
[IE]Sending non-english characters via jquery.ajaxI have a simple aspx page with 2 inputs(a button and a text box), when I hit the button I send the text box' value via ajax to a server method. When I use chrome/firefox it goes well, but when I send non-eng chars in explorer(versions: 7,8,9) I see in the server something like ??????? I have placed utf-8 meta tag at the aspx page and I save the file as an encoded-utf8 file.
-
removing aspx extensionHi, I want to remove the extension of my asp.net webpages(I have a webapplication). I've read some guidelines about the issue but I've found some simple ways to do it. I've tried adding the following lines to my web.config file:
I have also tried to add this function to Application_BeginRequest in my global.asax file:
string curruntpath = Request.Path.ToLower();
curruntpath = curruntpath.Trim();
if (curruntpath.EndsWith(".aspx"))
{
string finalurl = curruntpath.Substring(curruntpath.Length - 5, 5);
HttpContext.Current.RewritePath(finalurl);
}In the first case, when I type "www.site.com/page" I'm being redirected to "www.site.com/page.aspx"(which is my wanted page), but when I type "www.site.com/page.aspx" I want the shown URL to be "www.site.com/page", and it doesn't happen. In the second attempt I just can't get any page when typing "www.site.com/page.aspx". What should I do in order to solve it?
-
displat html via xslt macroI use an xslt in order to "translate" an xml file which includes HTML fields:* ...... ...... the text field is html field and it's displayed in the browser like this:
texttexttexttexttext What should I do in order to make it being displayed as the following: texttexttexttexttext ???
-
response.redirect afetr few secondsI have a basic login page. when a user is logged in, I want him to be redirected to a page with a success message and after 3 seconds, I want him to be redirected to my home page. I know that I can use sleep time, but it's not recommended. So what's the best way to achieve it?
-
Facebook connectI read it supposed to take me back to the previous page so I could get information from the logged FB account.
-
Facebook connectI use the following code in order to conncet my asp.net website to facebook string appId = "xxx"; string[] extendedPermissions = new[] { "publish_stream", "offline_access" }; var oauth = new FacebookOAuthClient { AppId = appId }; var parameters = new Dictionary<string, object> { { "response_type", "token" }, { "display", "popup" } }; if (extendedPermissions != null && extendedPermissions.Length > 0) { var scope = new StringBuilder(); scope.Append(string.Join(",", extendedPermissions)); parameters["scope"] = scope.ToString(); } var loginUrl = oauth.GetLoginUrl(parameters); Response.Redirect(loginUrl.AbsoluteUri); but when I run this I get a login page(full page altough I set the display property to "popup"), and after login I redirected to a page which is not my website page(http://www.facebook.com/connect/login\_success.html#access\_token=xxx;expires\_in=0). The page includes the word "succeed" only...