re:
Maybe it doesn't work because that code detects Firefox 1.0, not FF 2.0.
"Note: I've tested it with Netscape 6 & 7,
Mozilla Firebird/Firefox 0.7-1.0, Konqueror, Safari, and Opera 6-8."
You'll need to add FF 2-specific detection.
Here's what FF 2.0 returns when I identify it on my OS :
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
a. Browser = Firefox
b. Version = 2.0
c. MajorVersion = 2
d. MinorVersion = 0
e. Platform = WinNT
f. EcmaScriptVersion = 1.4
g. Type = Firefox2.0
h. TagWriter = System.Web.UI.HtmlTextWriter
a. ActiveXControls = False
b. AOL = False
c. BackgroundSounds = True
d. Beta = False
e. Browser = Firefox
f. CDF = False
g. ClrVersion = 0.0
h. Cookies = True
i. Crawler = False
j. EcmaScriptVersion = 1.4
k. Frames = True
l. JavaApplets = True
m. JavaScript = True
n. MajorVersion = 2
o. MinorVersion = 0
p. MSDomVersion = 0.0
q. Platform = WinNT
r. Tables = True
s. TagWriter = System.Web.UI.HtmlTextWriter
t. Type = Firefox2.0
u. VBScript = False
v. Version = 2.0
w. W3CDomVersion = 1.0
x. Win16 = False
y. Win32 = True
You'll have to incorporate that info into a FF 2-specific browser identification, like the one
http://slingfive.com/pages/code/browserCaps/browserCaps_spaces.txt
has for Firefox 0.7-1.0.
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
===================================