User Profile
Collapse
-
My guess is that they don't want you messing with default accessibility controls.... -
What do you mean by "value doesn't print"?
If you want to copy the value of the previous field, where you have:
Insert:Code://element2.value =document.getElementById().value;
Be careful about using childnodes, since some browsers include newline...Code:if( rowCount > 0 ) element2.value = table.rows[ rowCount-1 ].cells[ 2 ].getElementsByTagName('input')[0].value;Leave a comment:
-
Before investigating further, I suggest that you validate the document - http://validator.w3.orgLeave a comment:
-
I cannot see the point of that code; it makes multiple server requests to perform a task that can be done client-side. It's certainly no substitute for conventional server-side validation, which is still essential. It looks like AJAX for the sake of it....Leave a comment:
-
I.E doesn't support disabling of options.
You could use the onchange handler to limit the selectedIndex to 28 on the appropriate month.Leave a comment:
-
You're writing into the body before it's rendered. Put your code block inside the body section.Leave a comment:
-
If you disable the submit button in the first statement of the onsubmit handler, pressing the button again will have no effect regardless of its displayed state.
There could be ways of speeding-up your code...
Another way would be to have the onsubmit handler:- Disable the button
- Set its value to 'Please Wait'
- Set a timeout to call the processing function in 10ms. The processing function calls the submit method.
- Return
Leave a comment:
-
With a return statement I don't see how that can happen. If the focus is immediately lost, the cause is probably the button on the prompt still being 'pressed'.
If that's not it then you need to show more....Leave a comment:
-
Use inserBefore in insertAfter mode:
Code:obj.insertBefore( newObj, null );
Leave a comment:
-
My guess is that radtripType is a member of document.forms[2]...Leave a comment:
-
Try modifying the loop to the code below. It saves the element reference in elem for simplicity and speed; again untested:...Code:for( var i = participants.length-1, elem; i > -1; i-- ) if( ( (elem = participants[ i ] ).checked) ) { while( elem.nextSibling.nodeType == 3 ) elem.parentNode.removeChild( elem.nextSibling ); elem.parentNode.removeChild( elem ); }Leave a comment:
-
Probably because as items are removed, i indexes to wrong element. I can't test this now but try it counting down:...Code:. function removeParticipants() { var participants = document.getElementById( 'participantDiv' ).getElementsByTagName("input"); for(var i=participants.length-1; i > -1; i--) if(participants[ i ].checked)Leave a comment:
-
participantDiv isn't a reference: this must have have generated an error. Also participants[ i ] is a reference, so you don't need to use its ID to get a reference to it
...Code:function removeParticipants() { var participants = document.getElementById( 'participantDiv' ).getElementsByTagName("input"); for(var i=0; i < participants.length; i++) if(participants[Leave a comment:
-
If you start the preload operation using the onload event there is no delay in loading the rest of the content, although there will be some delay before the preloaded images become available.
Your code will preload only the last image, since you're reassigning source files to the same Image object.
This is the simplest fix for what you have already:...Code:function imagePreloader() { this.objImage = [];Leave a comment:
-
It's much simpler to use a regular expression to remove unwanted characters from the string after each keystroke. Use the onkeyup event.Leave a comment:
-
You can't name a <select> 'options' since it has such a property already and it's causing an addressing error....Leave a comment:
-
typeof returns the type as a string, so the above always evaluates true
The above always evaluates true because undefined isn't a string.
Also you can test by naming the object as a child; so if myObj is globalCode:if(typeof myObj != "undefined") .......
...Code:if( window.myObj != undefined ) .......
Leave a comment:
-
-
-
Since you're using DOM methods already, instead of .innerHTML:Code:td.innerHTML = '<INPUT'+' type="radio"'+ ' name="SearchMethod"'+ ' id ="Contains"'+ ' value="Contains"'+ (cKeyChk ?' checked':'')+ '/>'
Code:td.appendChild(document.createTextNode(/*string here*/))
Leave a comment:
No activity results to display
Show More
Leave a comment: