|
thanks but i purpose run again some time this function but after 3 second so run 2 row end but when i use function setTimeout so 2 row end will run again with number again run function
|
|
|
|
|
AnhTin wrote: thanks but i purpose run again some time this function but after 3 second so run 2 row end but when i use function setTimeout so 2 row end will run again with number again run function
I didn't even get close to understanding what you are trying to say. Please try again.
---
single minded; short sighted; long gone;
|
|
|
|
|
thanks reply to me
Ex: i have funtion demo(value)
and 10 button have event onclick="demo(0 to 10)" when i click any button after 3 second it run command on function demo. because u can click more button but the function demo only run in click time final after 3 second.
|
|
|
|
|
Use the window.setTimeout method to call the function:
onclick="window.setTimeout('demo(0);', 3000);"
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi all
I have a php question any help would be fab !!!!
I have two select boxes and when the user changes the first i need to repopulate the second. something like the example shown in the link :
http://bonrouge.com/~chain_select_ajax
However this makes it sound like a huge job !!! is there a simpler way ???
Any info would be most appreciated !!!
Thanks again
John
|
|
|
|
|
john34 wrote: However this makes it sound like a huge job !!! is there a simpler way ???
You can use a JS library such as Prototype or jQuery to take care of a lot of the plumbing for you. Of course, if you're only dealing with a handful of options, you could just store them all in JS arrays and skip the whole AJAX thing completely - just associate each array with an option in the first combo, and load the appropriate one when the selection changes.
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
I have an issue where some hyperlinks the underline appears 1px closer to the text than normal. This causes problems if there is a hanging character such as (p,q,g,y etc). I can't seem to find a reason for it to happen, as it only happens on some of the links on the page I am working on. Any ideas on where to look?
Matt Newman
|
|
|
|
|
Fire up Firebug and examine the composite styles on the hyperlink text (or if it only happens in IE, examine the runtimeStyle property... but you'll have to track down the source of the style manually). Pay particular attention to rules that set line-height , font-size , and border-bottom (yes, border-bottom is occasionally used in place of an underlined font style, and might well interfere with the descents).
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
I guess I should have mentioned it only happens in IE. I don't specify line-height (ever), there is no use of border-bottom, and the same style is used for links that render differently.
For example:
*snip*
<a class="someClass" href="whatever">Some Link</a>
*snip*
<a class="someClass" href="anotherwhatever">Some Other Link</a>
*snip*
One of those will display the underline at the correct point, and one won't. The only difference is that they are in different areas of the layout (ie in different divs)
Matt Newman
|
|
|
|
|
Matt Newman wrote: The only difference is that they are in different areas of the layout (ie in different divs)
Hmm... The only thing that makes sense to me is that, somehow, the containing DIV is changing applicable styles.
Though since you're using text-decoration: underline rather than border-bottom , it really shouldn't be possible to adjust the position of the underline at all, without changing the font...
...just out of curiosity, are either of the DIVs floated? And is your page in quirks mode? If so, try un-floating it and see if that makes a difference. IE has had some really odd ideas about what float means when it comes to rendering. (but this is the grasping at straws answer, i'm afraid)
----
It appears that everybody is under the impression that I approve of the documentation. You probably also blame Ken Burns for supporting slavery.
--Raymond Chen on MSDN
|
|
|
|
|
Shog9 wrote: ...just out of curiosity, are either of the DIVs floated? And is your page in quirks mode? If so, try un-floating it and see if that makes a difference. IE has had some really odd ideas about what float means when it comes to rendering. (but this is the grasping at straws answer, i'm afraid)
It is not in quirks mode and yes some are floated, some are not. I'm afraid this might end up being one of those things that the client will have just have to deal with.
Matt Newman
|
|
|
|
|
Hi all,
I am having a webpage in which I am printing a code behind textbox text value on to the paper by using vbscript function.
I have binded this function to a button. Everything is going clear upto this. But when I tried to I changed the text box text and click the print button, its printing before value only, but not the latest value.
I have tried in many ways to achieve this, but still it was taking previous value of the text box but not the latest one.
Please give me some idea to overcome this problem. Thank you.
Regards,
Aleem
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Whatever function your using to print is using a variable thats being set when/before the page loads. It needs to pull this value from the text box when it runs.
|
|
|
|
|
Repeat after me. "I will not cross post. I will not cross post. Cross posting is bad. Cross posting gets me voted down. Cross posting makes people cross with me. Cross posting will not get me help."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hello
Am a beginner in asp.net please help with the code for this problem.After the user selected the Projectmanager from the dropdownlist displayed insidem the repeator control,when the user clicks Submit to Manager button the form should be submited to all the manager selected in the dropdownlist of the repeator.Repeator is used in mt application to create a table/number of rows.
Thank you in advance
oga m
|
|
|
|
|
Hi friends,
I'm having a problem when trying to connect to any DB using ADODB.Connection server object.
I'm using classic ASP and my OS is Windows Visa Business.
The message I'm getting is:
"An error occurred on the server when processing the URL. Please contact the
system administrator"
...and it comes when the code reaches this line:
mycnn = Server.CreateObject("ADODB.Connection")
I will appreciate any help.
|
|
|
|
|
Hi to all
I need to know can someone help me , I have a div controll with HTML content in the div, I want to add ASP.NET buttons at specific locations in the HTMLContent at runtime,
eg in the backend
I will declare my buttons as
Button but1 = new Button();
Button but2 = nre Button();
Now I just need to place these buttons in a specific location in the div ?
Le Roux Viljoen
Web Developer
PCW New Media - SA Branch
|
|
|
|
|
If you have placeholder controls in the div, you can add your buttons to the placeholders.
|
|
|
|
|
No it is only html content in it
I have tried editing the code and putting <asp:> tags in it but that doesnt work that well, so I am thinking about using a control.add command
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
as in, asp:div ? Doesn't work this way, what you probably want to do is div runat="server" , then you can access it from server side.
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
"Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
No, I know that div doent belong to the asp element, what I am saying is I tried to add a <asp:Button runat="server" id = "My button" ect.../> to a <div id="myDiv" runat="server"> </div> in the code behind, but that doent work, the button must be generated dynamically, so I would rather use Button myBut = new Button(); The Div contains html content (a bunch of text, img ect tags) at certain tags that have words like "design" i want to place these buttons to enable keyword navigatyion
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
What's wrong with adding these controls as html input controls and marking them as runt=server?
This would be an easier way to work i think.
I think that you will have difficulty adding server controls otherwise, as the html string that you output will not be parsed by the server side code in the same way as the rest of the page.
|
|
|
|
|
Say I declare a button like that it doens't even display. I believe becuase it needs to be declared as in Button mybut = new Button and then u must use a addControll method of the div u marked as runat server, and that works 100 now I need to place it in a secific location, say if the div has content words like "design", "technical" I want to replace those words with a button and link them to other pages on the site.
Oliekrokenosterpikkelikkeastrysvoel
|
|
|
|
|
If you just want to replace them with a navigational link or button (I'd highly recomend hyperlinks over buttons for navigation!) you would be better to parse the html content of the div and replace those keywords with an html link.
The only way I know how to get ASP controls at specific locations is to use placeholder controls.
|
|
|
|
|
Yes thought about it but my navigation works by setting a session[PageID] and then using that to set the page content so I can use ASP.Net AJAX for my navigation to avoid postbacks. for my axaj I use the telerik rad Ajax controll its kickass and totaly codeless, you can check it out at www.telerik.com
But thanx anyway but what I need to do is everythink to be done server side, Absolutely no .js files or script tags in my .aspx file.
Le Roux Viljoen
PCW New Media
Web Developer
======================
|
|
|
|