Forum Moderators: open
I'm working on multiple projects which need to be equivalent in Netscape 4.x, IE4+ and Netscape 6.x+
They need to look the same, behave the same, have the same functionality wrt form verification and submission, dhtml, etc.
Can anyone point me to some thorough documentation on cross-browser/cross-DOM creation of html and javascript?
I'm working in text editors only -- no DW, FP, etc.
Thanks in advance
Kay
They need to look the same, behave the same, have the same functionality wrt form verification and submission, dhtml, etc
Unfortunately, they won't. That's the nature of the two different browsers. Even basic HTML renders differently in the two browsers, especially in version 4.
The DOM for Netscape 4 and IE 4 is very different, so you would need two sets of javascript to make sure it worked in both. Netscape 7 works more like IE 5.5, but not entirely the same.
You will probably need to aim for something like "HTML 4.01 Transitional" compliant code.
On the design side, make your code tidier by exporting all CSS and JS to external files as well.
Use the @import method to access the external CSS file otherwise your page will have overlapping elements on it in Netscape 4.
Ah, yes, the story of my life... tell this to our Design group. It's been an ongoing battle, over the years (literally) to get them to give a little, by way of exact placement and alignment. I'll spare you the tales of woe... rest assured that browser discrepancies have been a "hard sell" in these parts >:(
In any case, my new task is to communicate to server-centric programmers the things they need to keep in mind, when working on their client-facing code. We've got a lot of Java developers scratching their heads over the gotchas of cross-browser coding/scripting, and it's my mission (I chose to accept it) to give them the tools they need to minimize pain and suffering.
So, I'm collecting all the external resources (outside of my own brain/experience) I can get my hands on to help them out.
Any additional help from you all would be much appreciated!
Thanks
~K~
Internet Explorer 5 + (Win)
Netscape 5 + [product line starts at 6, code name is 5] (Win, Mac, Lin)
Mozilla 1 + (Win, Mac, Lin)
Opera 5/6 + (Win, Lin)
Opera? (Mac) [anyone know the Opera Mac versions?]
Konqueror 3 + (Lin)
Safari 1 + (Mac) [believed to use Konqueror's KHTML engine]