From: Scott A. L. <sc...@sc...> - 2000-12-14 18:29:09
|
As long as you have the latest Mozilla build you're basically working with the same codebase as Netscape 6. Arguably if you develop for one you're also developing for the other. Mozilla may be more stable because it doesn't come with all the integrated bloatware. So try switching to Moz if NS6 doesn't like you. As far as Opera 5, I just started fiddling with it. Dan's right: it doesn't support createElement() (or many of the W3C ECMAScript interface, for that matter). Nor does it seem to support innerHTML, insertAdjacentHTML, or any other means of dynamically generating elements without document.write. Bummer. What's interesting is that by default, Opera 5 indentifies itself as MSIE 5.0. But it can also be manually set to disguise itself as NS6, NS4, and Opera. That means you can't always rely on a browser sniffer using "navigator.appName" to sniff it correctly. I'm still tinkering, because there doesn't seem to be a lot of docs on the web concerning Opera and DHTML compatibility. In it's defense, it's a soopa-fast little browser. It smokes Mozilla's performance (on my machine, at least). -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com |
From: Doug M. <do...@cr...> - 2000-12-14 19:16:45
|
to test for browser functionality without relying on appname: if (document.all) -- most likely MSIE, but at least supports most of it's functionality else if(document.layers) most likely is NS but at least supports most of it's functionality.. Doug Melvin ----- Original Message ----- From: "Scott Andrew LePera" <sc...@sc...> To: "dynapi" <dyn...@li...> Sent: Thursday, December 14, 2000 10:29 AM Subject: [Dynapi-Dev] Mozilla & Opera > As long as you have the latest Mozilla build you're basically working > with the same codebase as Netscape 6. Arguably if you develop for one > you're also developing for the other. Mozilla may be more stable because > it doesn't come with all the integrated bloatware. So try switching to > Moz if NS6 doesn't like you. > > As far as Opera 5, I just started fiddling with it. Dan's right: it > doesn't support createElement() (or many of the W3C ECMAScript > interface, for that matter). Nor does it seem to support innerHTML, > insertAdjacentHTML, or any other means of dynamically generating > elements without document.write. Bummer. > > What's interesting is that by default, Opera 5 indentifies itself as > MSIE 5.0. But it can also be manually set to disguise itself as NS6, > NS4, and Opera. That means you can't always rely on a browser sniffer > using "navigator.appName" to sniff it correctly. > > I'm still tinkering, because there doesn't seem to be a lot of docs on > the web concerning Opera and DHTML compatibility. In it's defense, it's > a soopa-fast little browser. It smokes Mozilla's performance (on my > machine, at least). > > -- > scott andrew lepera > ----------------------------------- > web stuff: www.scottandrew.com > music stuff: www.walkingbirds.com > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |
From: Scott A. L. <sc...@sc...> - 2000-12-14 20:08:33
|
Actually, it seems that in MSIE 5.0 mode, Opera supports a document.all collection, but doesn't support other features like innerHTML, so we may have to do some extra work to detect Opera. Or, we could just support it until it has a better scripting interface (W3C's model is what I'd prefer). -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com |
From: Doug M. <do...@cr...> - 2000-12-14 21:14:43
|
ick. so, if (document.all && document.innerHTML)... ? > Actually, it seems that in MSIE 5.0 mode, Opera supports a document.all > collection, but doesn't support other features like innerHTML, so we may > have to do some extra work to detect Opera. Or, we could just support it > until it has a better scripting interface (W3C's model is what I'd > prefer). > > -- > scott andrew lepera > ----------------------------------- > web stuff: www.scottandrew.com > music stuff: www.walkingbirds.com > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |
From: Scott A. L. <sc...@sc...> - 2000-12-14 23:10:20
|
With BrowserCheck, maybe something more along the lines of: if (is.ie5 && !document.innerHTML) <-- Opera, disguised as IE5 ? -- scott andrew lepera ----------------------------------- web stuff: www.scottandrew.com music stuff: www.walkingbirds.com |