Javascript working in windows not OSX. help?

Discussion in 'Mac Programming' started by glennyboiwpg, Mar 26, 2007.

  1. macrumors 6502

    Joined:
    Feb 16, 2007
    #1
    Hello,

    I'm a Java developer working on a windows box supporting a jsp web app where some of our coworkers are designers working on osx panther and tiger.

    Today we noticed that some important javascript validation just wont work on os x safari or firefox (on the same machine)

    Any ideas?

    Thanks.
     
  2. macrumors G4

    Eraserhead

    Joined:
    Nov 3, 2005
    Location:
    UK
    #2
    Can we have a look at the code in question?
     
  3. thread starter macrumors 6502

    Joined:
    Feb 16, 2007
    #3
    we found the problem.

    if your not in Internet Explorder you must add the id attribute to text boxes if you want to do document.getElementbyID() on it.

    if you are in internet explorer and don't have the id attribute, it will try and use the name attribute.

    Thanks for all who read this post, and hope this info helped someone.
     
  4. macrumors member

    asterizk

    Joined:
    Oct 24, 2003
    Location:
    Sarasota, Florida
    #4
    I didn't catch your post in time, but I've found Peter-Paul Koch's website, www.quirksmode.org, invaluable for resolving these types of problems.
     

Share This Page