Hi!
Has anyone out there had any luck with the Browser Capabilities
Component that comes with IIS 5.0? I have tried several different
things and keep crashing Internet Explorer 5.5. I have even used M$'s
own example with no luck as follows:
Sendcook.htm
<HTML>
<HEAD>
<SCRIPT language=3D"JavaScript">
function stopAllErrors()
{
// No errors should be presented to the user if they occur.
return true;
}
window.onerror =3D stopAllErrors;
function window.onload ()
{
oClientCaps.style.behavior =3D "url(#default#clientCaps)";
bcString =3D "width=3D " + oClientCaps.width;
bcString +=3D "&height=3D " + oClientCaps.height;
bcString +=3D "&bufferDepth=3D " + oClientCaps.bufferDepth;
bcString +=3D "&colorDepth=3D " + oClientCaps.colorDepth;
bcString +=3D "&cookies=3D " + oClientCaps.cookieEnabled;
bcString +=3D "&platform=3D " + oClientCaps.platform;
document.cookie =3D "BrowsCap=3D " + bcString;
}
</SCRIPT>
</HEAD>
<BODY ID=3D"oClientCaps">
</BODY>
<HTML>
Checkcap.asp
<!--METADATA TYPE=3D"Cookie" NAME=3D"BrowsCap" SRC=3D"sendcook.htm"-->
<HTML>
<BODY>
<% Set myBrowsCap =3D Server.CreateObject("MSWC.BrowserType") %>
<%
Response.write("width=3D " +myBrowsCap.width +
"<BR>")
Response.write("height=3D " +myBrowsCap.height +
"<BR>")
Response.write("bufferDepth=3D " +myBrowsCap.bufferDepth +
"<BR>")
Response.write("colorDepth=3D " +myBrowsCap.colorDepth +
"<BR>")
Response.write("cookies=3D " +CStr(myBrowsCap.cookies) +
"<BR>")
Response.write("platform=3D " +myBrowsCap.platform +
"<BR>")
%>
</BODY>
</HTML>
Any help will be most appreciated!
Thanks,
Bill Reynolds
Web Applications Programmer
Graphic Enterprises, Inc.
3874 Highland Park NW
North Canton, OH 44720.8080
xxx-xxx-xxxx (p)
xxx-xxx-xxxx (f)