![]() |
|
|
Published: Thursday, December 14, 2000
In Part 1 we looked at how to use client-side scripting techniques and the User-Agent server variable to determine the user's browser type and version. In this part we will look at using two more server-side techniques: using Microsoft's Browser Capabilities component, and using a BrowserHawk, a commercial, third-party component.
Using Microsoft's Browser Capabilities
The output of the above script, for your browser, can be seen below: For another Browser Capabilities example, be sure to view our live demo.
Since the Browser Capabilities component determines a browser's properties through this file, it is important that
this file be updated when new browsers hit the market (such as Opera, or new version of IE or Netscape). You can
learn where to download the latest version of
Using BrowserHawk to Perform Browser Detection BrowserHawk, a browser detection component put out by the people at cyScape, is a commercial, third-party component that excels in browser and browser capabilities detection. With BrowserHawk, you can determine a whole slew of things, such as whether or not the user has: cookies enabled, JavaScript enabled, Java Applet support enabled, if they're using an AOL browser, if they can support SSL connections, if they support PNG image display, if they have various plug-ins (such as Acrobat Reader, QuickTime, Flash, etc.), if they support XML display, if the browser supports HDML or WML, etc. The only downside to BrowserHawk is that it is not a free component. You can download a free version to play around with it and see if it meets your needs, but, to keep it from expiring, you'll eventually need to buy a copy, which can run from $119 to $489, depending on the version you're interested in. For some great demos with BrowserHawk, be sure to read the following articles:
Well, that about wraps this article up! We've examined four different ways to perform browser detection. When it comes to browser detection and capabilities there's a trade-off between fast and free with few features and slower and more costly with many more features. Your choice should depend on what needs you have and what types of browser capabilities you need to be able to detect. Happy Programming!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||