Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Clueful

    Regular expression in Javascript

    You're not specifying end-of-input, so as long as it starts with a digit it can be followed by anything.
  2. Clueful

    Need help for retriving value from options

    The Option() constructor requires two parameters, you have passed only one in preload_city_program.
  3. Clueful

    Display DIVs problem

    There is no 'visible' property, presumably you mean 'display'.
  4. Clueful

    Javascript functions

    You are assigning to the readystate handler, the return value of the function that creates it. This is going to cause infinite recursion. xmlReq2.onreadystatechange = function() { ......... }Also the switch-case constuct is pointless here.
  5. Clueful

    How can I get element's value without knowing its name?

    Maybe something like this: for(var c=myDiv.childNodes, len=c.length, i=0; i<len && !c[i].id || c[i].id.indexOf( myPrefix )!= 0; i++) ; var elem = ( i == len ? null : c[i] );
  6. Clueful

    Assigning the contents of a text box onkeypress

    Assuming those are the only forms in the document: onkeypress="document.forms[1].TheClientName.value=this.value"
  7. Clueful

    how to get hold of onerror event??

    It would help if you would explain your scenario. A common use is to provide an alternative image if the original can't be loaded.<img src='http://someremotesite/pics/353.jpg' onerror="this.src='backup.gif'">A safer version would be:<img src='http://someremotesite/pics/353.jpg'...
  8. Clueful

    popup menu style listbox

    I don't see how listboxes need to take more space than text fields, but does this address your needs:
  9. Clueful

    changes in IE7 - status line?

    On current browsers it's controlled by a user setting, and the default is Off. Try document.title += myDate
  10. Clueful

    event handler

    newImgElement.onmousedown=function(){/*your code here*/}There may be scope issues to resolve, but you need to say what the handler is to do.
  11. Clueful

    Select and deselect all checkboxes

    It's this simple: <script type="text/javascript"> function check_all(group, action) { for (var i=0; i<group.length; i++) group[i].checked = action; } </script> <form> <input type="checkbox" name="checkall" value="" onClick="check_all( this.form['checkbox[]'], this.checked )"> <input...
  12. Clueful

    Script works fine in IE, FF, &amp; Opera, but not Safari 3...

    It looks line 170 crossobj.style.KhtmlOpacity=obj.degree/100 should read: crossobj.style.KhtmlOpacity=this.degree/100; I think someone forgot to change it when they changed the other references.
  13. Clueful

    Script works fine in IE, FF, &amp; Opera, but not Safari 3...

    The Safari Console indicates an error on a non-existent line. First try fixing all the errors shown by the validator. http://validator.w3.org
  14. Clueful

    simple regex

    2 or 3 digits followed by 2 letters? /^\d{2,3}[a-z]{2}$/i
  15. Clueful

    Preload image file works in Firefox but not IE?

    I can think of a few tweaks that I could try, but like virtually everything from that site, the code is not easy on the eye. I do have an alternative that just produces a styleable %age display, based on the image sizes you specify. Upon completion you can navigate to a new document or run some...
  16. Clueful

    Code not returning value from iFrame to parent page

    Use window.parent.
  17. Clueful

    undefined id

    You're referencing an element directly, instead of via the reference that you have stored above.
  18. Clueful

    setInterval lag

    You cannot expect 100 screen updates per second, and even I.E. is giving you a lot less than that. I suggest a period of 100 ms.

Part and Inventory Search

Back
Top