Reply LinkBack Thread Tools Search this Thread
Old 31-01-2008, 03:59   #1 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,606
Javascript Browser Discrepancy List

Does anybody know of a list of javascript browser discrepancies? For example, firefox supports object.setAttribute("class", [classname]), but with internet explorer, the class name is set using object.className = [classname]. I have am usually able to find something on the internet somewhere when I have one of these problems, but it would be nice to have a list somewhere for reference.

Im mostly concerned with firefox and internet explorer (the site Im developing is for internal company use, and thats all anyone uses in my office), but if the list covers other browsers, I wont complain! Thanks.
  Reply With Quote
Old 31-01-2008, 10:49   #2 (permalink)
cam
vague™
 
cam's Avatar
 
Join Date: Mar 2004
Location: Glasgow
Posts: 5,512
Don't have a list unfortunately, but have you considered using one of the lightweight JS libraries around which have already handled these issues for you? jQuery is fantastic and the minified version comes out around 15kb. Just an idea.
__________________
  Reply With Quote
Old 31-01-2008, 11:34   #3 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,606
Thanks for the suggestion. I will probably start using javascript libraries in the future after I am comfortable that I can do whatever I want on my own. I only started learning Javascript about a month and a half ago, so I think I'll play with it for a few more months first before switching to a library. Thanks for the suggestion though!
  Reply With Quote
Old 31-01-2008, 11:51   #4 (permalink)
proc355
Senior Member
 
proc355's Avatar
 
Join Date: Sep 2006
Location: Glasvegas
Posts: 865
look at, rather than use, one of the libraries then…

best place for that info as cam said
__________________
meh.
  Reply With Quote
Old 31-01-2008, 12:01   #5 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,606
Now thats some good advice! Never even thought about that. Thanks! I will definitely do that.
  Reply With Quote
Old 31-01-2008, 13:43   #6 (permalink)
erik.silkensen
Registered User
 
erik.silkensen's Avatar
 
Join Date: Apr 2007
Location: colorado, usa
Posts: 23
After you learn the language it's probably best to move to libraries, like other people said. I use Coda, and one nice thing is that for the different functions/attributes Coda says which browsers and which versions they work on. (uses "Web Programmer's Desk Reference")
  Reply With Quote
Old 01-02-2008, 05:06   #7 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,933
Not bang up-to-date, but still useful…

QuirksMode.org: W3C DOM Compatibility Tables
  Reply With Quote
Old 01-02-2008, 06:57   #8 (permalink)
Shiro
shiro
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 2,606
Thanks Bill, thats exactly the type of thing I was looking for. I bookmarked it and will definitely be using it in the future.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8