[thelist] Check browser settings with ASP?
aardvark
roselli at earthlink.net
Mon Jun 11 12:26:21 CDT 2001
> From: Scott Dexter <sgd at ti3.com>
[...]
> Though I support the client-side solution to this, I recommend
> cruising the BrowserHawk site, and check
> http://www.browserhawk.com/showbrow.asp --it pulled up my screen
> width/height...
BrowserHawk *is* using client-side script... that's the only way to
get some of that info out of the current browsers... note this:
http://www.browserhawk.com/showbrow.asp
here's just one of the JS script blocks at the top of that page:
<script language="JavaScript">
<!--
function bhawkTest() {
var bhfv = testFl();
var je = 0;
if (navigator.javaEnabled()) {je = 1;}
var bhdir = isHere('application/x-director', 'Director', 'dcr');
var bhqt = isHere('video/quicktime', 'QuickTime', 'mov');
var bhsv = isHere('image/svg', 'Adobe SVG', 'svg');
var bhcr = isHere('application/x-ssreportviewer-
plugin;version=7.0.100.1','Seagate Software Report', '');
var bhvp = isHere('application/x-mtx','MetaStream', 'mtx');
var bhaw = isHere('application/x-authorware-map','Authorware',
'aam');
var bhmg = isHere('application/x-mwf','MapGuide', 'mwf');
var bhcx = isHere('application/x-ica','Citrix ICA', 'ica');
var bhmp = isHere('application/x-mplayer2', 'Windows Media', '');
if (!bhmp) bhmp = isHere('application/x-drm', 'Windows Media', '');
var bhip = isHere('application/x-ipix', 'iPIX', 'ipx');
var d = new Date();
var bhtz = 4 - (d.getTimezoneOffset()/60);
var bhdt = escape(d.toLocaleString());
var bhdm = Date.parse(d.toGMTString());
var bhjp = plugV('Java Plug', 1);
var bhlu = navigator.language.toLowerCase();
var rs =
"bhfv="+bhfv+"&bhje="+je+"&bhdv="+bhdir+"&bhqt="+bhqt+"&bhsv
="+bhsv+"&bhcr="+bhcr+"&bhvp="+bhvp+"&bhaw="+bhaw+"&bhmg
="+bhmg+"&bhcx="+bhcx+"&bhmp="+bhmp+"&bhip="+bhip+"&bht
z="+bhtz+"&bhdt="+bhdt+"&bhdm="+bhdm+"&bhjp="+bhjp+"&bhlu
="+bhlu;
if (document.cookie.indexOf("bhCookieSess=1") != -1) {
document.cookie = "bhResults="+rs+"; path=/";
document.cookie = "bhPrevResults="+rs+"; path=/";
if (document.cookie.indexOf("bhResults") != -1)
self.location.replace("/showbrow.asp?bhcp=1");
else self.location.replace("/showbrow.asp?"+rs+"&bhqs=1");
}
else self.location.replace("/showbrow.asp?"+rs+"&bhqs=1");
}
// -->
</script>
More information about the thelist
mailing list