[thelist] Re: Detection Between IE and NS 6./6.0
Ben Gustafson
ben_gustafson at lionbridge.com
Mon Nov 26 13:10:54 CST 2001
Paul,
The User Agent string for NS 6.1 on a Mac is:
(Macintosh; U; PPC; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1
and on Win NT is:
(Windows; U; WinNT4.0; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1
therefore,
userAgent = Request.ServerVariables( "HTTP_USER_AGENT" )
IF INSTR( userAgent, "Netscape6" ) > 0 THEN
should work for detecting Netscape 6x server side (at least for these
platoforms).
--Ben
________________
Ben Gustafson
Lionbridge Technologies, Inc.
www.lionbridge.com
<msg>
Hi peeps,
doing a site at the moment and i need to use ASP to detect for NS
6/6.0.
Currently using this code for IE and NS (4.x) detection - but i now
need to
be more specific as NS 4.x and NS 6.x are behaving differently on a
width.
userAgent = Request.ServerVariables( "HTTP_USER_AGENT" )
IF INSTR( userAgent, "MSIE" ) > 0 THEN
IEWidth = ""
Else
NSWidth = ""
End If
Does anyone know how i can find out if it Ns 6.x and show a different
width?
Cheers
paul
</msg>
More information about the thelist
mailing list