Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

glennyboiwpg

macrumors 6502
Original poster
Feb 16, 2007
262
0
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.
 

glennyboiwpg

macrumors 6502
Original poster
Feb 16, 2007
262
0
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

macrumors regular
Oct 24, 2003
117
65
Sarasota, Florida
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, invaluable for resolving these types of problems.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.