ColdFusion Browser Detection Script - <cf_aebrowser>

Current Version

1.06 - Released 13th May 2005

Downloads

Donate

If you are intending to use cf_aebrowser for a commercial application please can you donate a small amount to help with the up keep and hosting costs. This is not required, but would be gratefully appreciated by the author. To donate simply click the image below and follow the Paypal screens.

Test It

Click here to view a CFDUMP of the browser structure for your browser/platform combination.

Tag Description

<cf_aebrowser> is a set of ColdFusion tags that detector the browser and operating system and returns a structure containing a variety of different variables.

This version of aebrowser, which is nothing to do with the original, but is fully compatible with the original version, however as the original version was encrypted it has been fully rewritten it. Some new variable for new browsers, such as Mozilla, Firefox, Safari, etc. has been added. Some additional operating systems have also been added.

Latest News

19th May 2005 - The CFC version of the tag, donated by Ryan Emerle (www.emerle.net) has been updated to include the bug fixes in version 1.06 of the tag. Please click here to download it.

13th May 2005 - Release version 1.06. Some minor bug fixes and an addition to the tag.

11th May 2005 - A CFC version of the tag, donated by Ryan Emerle (www.emerle.net) is now available. Please click here to download it.

5th Sept. 2004 - Moved the tag from Beta to Production status as extensive testing has been completed successfully.

1st Sept. 2004 - Moved the tag from Alpha to Beta as it is maturing nicely. More that 140 live tests have now been completed, most of which have been successful. From these tests problem have been identified and resolved. Hoping to get some more testing over the next couple of days and obtain a 100% success rate. If this happens the tag can move into production status.

Return Variables

<cf_aebrowser> returns a structure (browser) that contains the following variables:

Browser Type

Browser Version

Browser Support

Note: These values tell you if a feature is supported by the browser, but some features like Javascript can be switched off by the user. This tag does not detect if they are active.

OS Type

Other Values

Example Usage

To use <cf_aebrowser> simply include the tag in your page and then use the return structure. For example:

<cf_aebrowser>
<cfif browser.ISEXPLORER>
   ... do IE code ...
<cfelseif browser.ISMOZILLA>
   ... do Mozilla code ...
</cfif>

Testing Notes

A list of the browser and platform combination that have successfully been tested can be found here.

Changelog

Modifications

If you do make any modifications to the code and believe that your modification would help other, please submit your code to andrew@andrewdixon.co.uk.

Licence

© Copyright 2004, Andrew Dixon. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Donate

If you are intending to use <cf_aebrowser> for a commercial application please can you donate a small amount to help with the up keep and hosting costs. This is not required, but would be gratefully appicated by the author. To donate simply click the image below and follow the Paypal screens.


Online Dating