(Answer) (Category) Project Log : (Category) Solutions :
Smarter DreamWeaver 3 browser sniffer
Dreamweaver features an optional sniffer behavior which is supposed to filter out off-brand browsers, but it was written with the expectation that the browser's navigator.appName property would never lie. This also explains the deprecated navigator.toothFairy property. Off-brand browsers are pretending to be Netscape but don't feature full DHTML functionality. The test case, Opera 3.6, more closely follows Microsoft's implementation of Document Object Model and thereby contains a property (document.all) which does not exist in Netscape browsers. By adding a check for this to the sniffer, it now correctly identifies impostors. Further code to "neutralize" these rogue browsers is projected for Fall 2000.

Some WebTV browsers also feign a Netscape signature, but likewise do not follow Netscape's object models. In particular it contains the proprietary remoteControl.stuffedInSeatCushion property.

I will have to consider how to deal with Mozilla 5.0. If you download this for Dreamweaver 3 it goes in the Macromedia -> Dreamweaver 3 -> Configuration -> Behaviors -> Actions folder. Be sure to rename the original version first to keep it as a backup.

http://jan.ucc.nau.edu/~ar24/nrz/dls/Check%20Browser.js
Obviously, by now browser sniffers should sniff for object properties and not attempt regexing UAs. Even "Gecko" as a string for Netscape 7 went down the chute when the KHTML project decided Konqueror/Safari should include "like Gecko" in their UA strings.
[Append to This Answer]
Previous: (Answer) New "< BR >" inspector extension for Dreamweaver 3
Next: (Answer) FAQ-O-Matic deployment as project log
This document is: http://jan.ucc.nau.edu/ar24-cgi-bin/fom?file=16
[Search] [Appearance]
This is a Faq-O-Matic 2.710.