Great Article On Cross-Browser DHTML
Wednesday March 29th, 2000
Shelley Powers has written in with some notes on her new article, "X-Objects: X-DOM,X-Browser,X-Version Objects". Shelley writes, "Since Dynamic HTML was first introduced in 1997, I've always provided code that allows DHTML to be used with the two most popular browsers: Netscape's Navigator and Microsoft's Internet Explorer. To make cross-browser DHTML easier to work with, I created a set of cross-browser objects, which I've used for all of my DHTML effects.
Now that the beta release of Navigator 6.0 is on the horizon, it's time to take a look at the cross-browser objects and see what needs to change to support the new Navigator version. In the process, we'll find out that not only are we now handling cross-browser and cross-version differences, we're also handling cross-DOM implementations."
This article is well worth the read, especially if you're interested in maintaining some DHTML backward compatibility.
...someday, we won't need cross-browser code libraries.
#5 Re: maybe...
by judemat <firstname.lastname@example.org>
Wednesday March 29th, 2000 4:27 PM
> ...someday, we won't need cross-browser code libraries.
I highly doubt that will happen. There will always be some sort of browser quirk that we will have to work around.
Just write your pages in a Specification Friendly way. This way, good browsers will be separated from the rest, non specification compliant trash!
#4 I'm Grateful to Shelley
by TonyG <email@example.com.Yuk>
Wednesday March 29th, 2000 4:22 PM
AFAIC this article is the best of the current 5 articles in the entire world on DHTML in Moz. :-)
It provides a very clear run through of all the current DTHML techniques and provides a decent X browser API.
I was worried by a few things in the article though, such as the fact there is currently no Moz/DOM equivalent of innerHTML. Also that Moz is suffering the repaint blues so common in NN4.
Also, the dream of write once for all browser code is still in the distance judging by things like the non standard event detection in IE5.
Still, its a great article.