Forum Moderators: open
And what if you need a Javascript function call inside a table? Netscape 3 has a problem with this. Other than terminating the call with a semicolon, how else do you ensure that Netscape 3 will handle the javascript (assuming of course it's enabled)? Or do you write Netscape 3 off?
I'm also wondering if there is anybody equivalent to the W3C that sets standards?
I'm also wondering if there is anybody equivalent to the W3C that sets standards?
If you look closely at JavaScript, you'll find that there isn't much difference between the browsers - core JavaScript that is. The differences come in areas that ECMA doesn't set out to standardize. Things like browser objects (up to the producer), and document objects (W3C)
with IE 3.0 and higher. Is this to dated to learn with?
My advice (for what it's worth) is to target ver5+ browsers, at least while you're getting into your stride.
Does anybody have a link to a good reference for browser compatibility?
Netscape:[devedge.netscape.com ] - half-way down the page
MS JScript:[msdn.microsoft.com ]
These suggest that you should try at least v1.3 . Many of the newer additions are quite arcane, or slightly more advanced things like try .. catch blocks, which you needn't get into yet anyway.
The main compatibility issues are in the broader area of DHTML scripting in general. Try [quirksmode.com ]
..or come here, and ask for RamboTribble personally.
Parenthetically, I'd agree with him that anything prior to JS 1.3 is a bit on the archaic side. There are, however, some scripts that rely on the peculiarities of JS 1.2. As for try/catch blocks, for me they make more sense in Java, where you have a more structured exception handling scheme. JavaScript's try/catch/finally is basically a copy of Java's implementation of the concept, but stripped down a bit. O'Reilly's JavaScript: The Definitive Guide does a nice job of explaining the JS implementation and is an excellent reference on the language.
Probably the most significant enhancements to the JavaScript language in the later versions are the facilities for manipulating the DOM (document object model), an essential part of DHTML. In essence, real DHTML wasn't possible until version 4 browsers.