Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: problem with aftershock code plugin detection |
| From: | dking1 |
| Date: | Tue, 4 May 1999 16:02:07 +0100 |
From: Darrell King
The User Agent Sring is check with JavaScript:
Browser appVersion String:
Internet Explorer 3.02 Win95 2.0 (compatible; MSIE 3.02; Windows 95)
Internet Explorer 4.01 Win95 4.0 (compatible; MSIE 4.01; Windows 95)
Internet Explorer 4.01 NT 4.0 (compatible; MSIE 4.01; Windows NT)
Netscape Navigator 4.04 (Win95) 4.04 [en] (Win95; I; Nav)
Netscape Navigator 4.04 (WinNT) 4.04 [en] (WinNT; I; Nav)
A common technique is to parse the string for the integer value or for the
navigator.appvewrsion, which will return 4.x on IE5.
You can also check the UA for indexOf("MSIE 5") I believe, which should
return a positive value on any version of IE 5.x.
In this snippet, the variable isIE% will be either True or False:
var isIE5 = navigator.appVersion.indexOf("MSIE 5")>0
I haven't acutally tried this, but have seen the UA read back to me from my
IE5 at home, and the designation MSIE 5.02 (if I remember the minor
version right) was there...
I can run a test on this, but I don't have IE5 here, so it wouldn't be
until later tonight. there's a good Webmonkey ttorial on the basics at
http://www.hotwired.com/webmonkey/99/02/index2a_page2.html?tw=browsers
That particular page will even read back the UA for the browser you use to
access it in the 4th or 5th paragragh, I think....
Not sure if this helps, but at least I tried...:)
Darrell
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manager
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

