Web Analytics Made Easy -
StatCounter javascript validation not working - CodingForum

Announcement

Collapse
No announcement yet.

javascript validation not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • javascript validation not working

    I have some basic and some a bit more complex form validation i.e.checking for valid chars, length of string etc. It works fine in IE but not in Mozilla. Isthis normal or have I done something horrendously wrong?!

    Cheers, Andy

  • #2
    Maybe you used IE-only code such as document.all
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

    Comment


    • #3
      i have used things like document.getElementById in places, is that IE only code? What would be the cross-browser equivalent?

      Comment


      • #4
        document.getElementById() is the correct cross-browser DOM method. If you are having problem in Moz, check the error with Javascript Console.
        If you want more helpful answer post a link to the page you are having problem with.
        Vladdy | KL
        "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

        Comment

        Working...
        X