This is posted athttp://www.controlscaddy.com/A55A69/bccaddyblog.nsf/plinks/CBYE-6BZURH
"In Release 5 of Lotus Notes/Domino, we were given a very powerful easy to use formula, @BrowserInfo, to determine what web browser a user was accessing information with. I have used it extensively to determine what subforms or cascading StyleSheets (CSS) to serve up to the user, as well as a field to track what browsers people are using in a given application. All was well and good until Firefox came along.
If I want accurate calculations to account for Firefox, @BrowserInfo is useless. It reports Firefox as Netscape, which I do not want to occur. So out with the nice shortcut formula and back in with the HTTP_USER_AGENT CGI variable I now capture in a new computed when composed field. As a result, I have to now parse out the data instead of being able to leverage the easy to use parameters that came with @BrowserInfo.
Just a little heads up for you all."
Subject: Tip: @BrowserInfo Does Not Like Firefox
Well, I suggest you forget about identifying the browser this methodology is no longer needed. Try using W3C DOM. All you have to do is write scrip to test whether the browser complies with the Object you are trying to manipulate. here is an example and explanation… If you take your time to read it, you’ll see its worth it.http://www.mozilla.org/docs/web-developer/upgrade_2.html
Subject: RE: Tip: @BrowserInfo Does Not Like Firefox
It all depends on the situation and your end objective. Yes, you can do what you suggest, but I will argue that there are other purposes (such a dynamically loading subforms, messages, processing) that capturing the information up front before loading from the back-end is needed.
Subject: RE: Tip: @BrowserInfo Does Not Like Firefox
It’s not just Firefox, either, nor is it a Domino-specific problem. Everything Mozilla-based will report itself as “Netscape 5” when asked. That goes for the old standbys navigator.appName and navigator.appVersion as well. In JS, the common wisdom has been to stop trying to sniff browsers and start sniffing features instead. Unfortunately, one can’t do that server-side, so, yeah, you kinda hafta get the full user-agent string and parse what you need from that. And keep on top of what the various browsers tell you. And expect lies – some browsers spoof.
Subject: Here’s how to update @BrowserInfo to include support for Firefox (and whatever else)
-
Open the file browser.cnf in your Domino server’s data directory with a text editor (it’s a simple ASCII file)- Read the extremely detailed description at the header of the file
-
Study the existing properties and (brush up on regular expressions, if it has been a while in that department…)
-
Add your own support for new browsers or even new properties entirely and feel good about it!
(I knew there was a good reason to put so much effort into documenting this file so well…)
Thomas - IBM
Subject: RE: Here’s how to update @BrowserInfo to include support for Firefox (and whatever else)
Nice in theory Thomas, but not realistic in application. If you own the box where the application is used, sure. but if you don’t, well…and once this is done, IBM will wash its hand of support.
Maybe IBM should periodically update this file and make it available for download so that changes ARE supported!
Subject: I was merely pointing out an option for you to get it working again NOW so that you don’t have to WAIT for IBM to do it.