Peter Dowdell said:
> We risk a semantic argument here with the phrase browser sniffing.
No, that would only happen if this was Usenet ;-)
> But I think I understand your point, and it is valid. If i might
> attempt to express that more clearly:
>
> Browser sniffing (IMHO) means a process whereby the capabilities of a
> browser are determined by some means. This could be achieved in (at
> least) two ways:
>
The term "browser sniffing" in my experience gets used only for scripts
attempting the detection of the user agent. They are usually used by people
who think there are only two types of browser anyway! I much prefer to
differentiate between that and "object detection" to avoid the confusion
that may arise if people think you've said browser sniffing is OK, and don't
look to see what _sort_ of sniffing you meant.
[examples snipped]
We're in agreement here, but I'd go even further and say that the second is
the only safe method to use, as it's only in that case that you know what
will happen if the script fails to execute.
Pete
--
Peter M Gray
Museums Officer
________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________
|