Forum: JavaScript / DHTML / AJAX Jun 26th, 2009 |
| Replies: 3 Views: 1,539 No problem, if your all sorted you can mark the thread as solved. |
Forum: JavaScript / DHTML / AJAX Jun 24th, 2009 |
| Replies: 3 Views: 1,539 1. Don't use ID like you do. ID's are meant to be unique but your first section use "qa1" and "qa2" twice in both anchors and is then used in the divs as part of the second section.
2. You dont... |
Forum: JavaScript / DHTML / AJAX Jun 19th, 2009 |
| Replies: 2 Views: 590 You will need to randomly generate numbers and check that they have not already been displayed. The below does this by continuosly looping until it has found the total range of values. Each loop... |
Forum: JavaScript / DHTML / AJAX Apr 22nd, 2009 |
| Replies: 7 Views: 874 you cant directly as they are two seperate languages. you could output content to the page using a script block somthign like the following
string g = "ZOMGGGG";
bool s = g.contains("GGGG");... |
Forum: JavaScript / DHTML / AJAX Apr 18th, 2009 |
| Replies: 1 Views: 498 seems fine but a tip is dont use document.writeln.
try having a content area in the page e.g. a "<div>" then give this element and ID and set its innerHTML property to the text you want.
... |
Forum: JavaScript / DHTML / AJAX Feb 1st, 2009 |
| Replies: 9 Views: 3,147 You forgot to set the global 'wasOkPressed' flag after someone has selected Ok in the confirm dialog, this is how it knows whether to keep on validating. good luck. |
Forum: JavaScript / DHTML / AJAX Jan 24th, 2009 |
| Replies: 9 Views: 3,147 Following code should set you on the right path.
var wasOkPressed = false;
// Create an array of your checked controls
var controlArray = [ '<%= T_selector.ClientID %>', '<%=... |
Forum: JavaScript / DHTML / AJAX Jan 19th, 2009 |
| Replies: 9 Views: 3,147 i dont quite understand what you mean by "Basically I need to validate only once, if the user click OK then I don't want the js continue validate additional controls even if it is '&&'." so this... |
Forum: JavaScript / DHTML / AJAX Jan 18th, 2009 |
| Replies: 9 Views: 3,147 The ID you give the ASP control will change at runtime.
You need to change your hardcoded ID string to change at runtime using.
(document.getElementById('<%= T_selector.ClientID... |
Forum: JavaScript / DHTML / AJAX May 14th, 2008 |
| Replies: 8 Views: 4,915 is the function in the <head></head> area of the html document. the online example i put up works fine in both IE and firefox and the code has just been dragged from that. |
Forum: JavaScript / DHTML / AJAX May 13th, 2008 |
| Replies: 8 Views: 4,915 yes that may just work. but the increased time in doing this loop may take just as long as your original solution. |
Forum: JavaScript / DHTML / AJAX May 13th, 2008 |
| Replies: 8 Views: 4,915 i chopped up your code and used it with some big pics of my band.
here is the result resize example (http://www.designdotworks.co.uk/testing/image%20resize/resize.html)
my connection is fast... |
Forum: JavaScript / DHTML / AJAX May 13th, 2008 |
| Replies: 8 Views: 4,915 why not use the "defer" attribute of the script tag?
<script type='text/javascript' defer='defer'>
you could also add an onLoad event handler to run the script once the browser has loaded all... |
Forum: JavaScript / DHTML / AJAX Feb 25th, 2008 |
| Replies: 7 Views: 5,060 There is a problem with your javascript code somewhere as "document.getElementById" is perfectly fine for obtaining a table element with an ID. |
Forum: JavaScript / DHTML / AJAX Feb 25th, 2008 |
| Replies: 7 Views: 5,060 you cannot nest a form within a form as set by w3c. |
Forum: JavaScript / DHTML / AJAX Dec 11th, 2007 |
| Replies: 10 Views: 5,456 sorry what i meant was to a user it would appear as www.domain.com/page.html instead of say .aspx |
Forum: JavaScript / DHTML / AJAX Dec 10th, 2007 |
| Replies: 10 Views: 5,456 you can technically fake the interaction if thats what he means.
AJAX uses javascript to interact with a server side page. you dont actually see the page interacting with the javascript so it... |