PDA

View Full Version : Javascript working in windows not OSX. help?




glennyboiwpg
Mar 26, 2007, 01:34 PM
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.



Eraserhead
Mar 26, 2007, 01:36 PM
Can we have a look at the code in question?

glennyboiwpg
Mar 26, 2007, 02:41 PM
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.

asterizk
Mar 26, 2007, 04:28 PM
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.

I didn't catch your post in time, but I've found Peter-Paul Koch's website, www.quirksmode.org (http://www.quirksmode.org), invaluable for resolving these types of problems.