detect browser capabilities

snooper

Perch
i found the following script here: http://www.abiglime.com/webmaster/articles/asp/121798.htm


<%
' create an instance of the Browser Capabilities component
Set browserdetect = Server.CreateObject("MSWC.BrowserType")

' find some properties of the browser being used to view this page
browser=browserdetect.Browser
version=browserdetect.Version
majorver=browserdetect.Majorver
minorver=browserdetect.Minorver
platform=browserdetect.Platform
frames=browserdetect.Frames
tables=browserdetect.Tables
cookies=browserdetect.Cookies
javascript=browserdetect.JavaScript

' send some output to the web browser
response.write ("Browser: " & browser & "<BR>")
response.write ("Version: " & version & "<BR>")
response.write ("Majorver: " & majorver & "<BR>")
response.write ("Minorver: " & minorver & "<BR>")
response.write ("Platform: " & platform & "<BR>")
response.write ("Supports frames: " & frames & "<BR>")
response.write ("Supports tables: " & tables & "<BR>")
response.write ("Supports cookies: " & cookies & "<BR>")
response.write ("Supports JavaScript: " & javascript & "<BR>")
%>​


BUT.... on my IE6 (XPP, SP2), i get the following:

Browser: Netscape
Version: 4.00
Majorver: 4
Minorver: 00
Platform: unknown
Supports frames: True
Supports tables: True
Supports cookies: True
SupportsJavaScript: True​

I know there are other methods as well, i'm just confused at why this one doesnt work. could the browscap.ini file be old?

thanks
 
i think this comes with IIS

though i think the one with ISS only works for IE and is very basic, as its an example
 
After I get back to FL I will update the ini file on all servers, we have done it on a few, but I will update all of them sometime next week.
 
Stephen said:
After I get back to FL I will update the ini file on all servers, we have done it on a few, but I will update all of them sometime next week.

Thanks Stephen
please update us when you do.
 
Back
Top