| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
shiro
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. |
|
|
|
|
|
#2 (permalink) |
|
vague™
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. |
|
|
|
#3 (permalink) |
|
shiro
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! |
|
|
|
#6 (permalink) |
|
Registered User
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") |
|
![]() |