Here's some code that may be useful.  Not the most refined way, but works.  Also 
doesn't return version info. "Gecko" is NN6.


<CFPARAM NAME="request.IsMSIE" DEFAULT = "#IIf( CGI.USER_AGENT CONTAINS "MSIE", 1, 0 
)#">
<CFPARAM NAME="request.IsOpera" DEFAULT = "#IIf( CGI.USER_AGENT CONTAINS "Opera", 1, 0 
)#">
<CFPARAM NAME="request.IsGecko" DEFAULT = "#IIf( CGI.USER_AGENT CONTAINS "Gecko", 1, 0 
)#">
<CFPARAM NAME="request.IsKonqueror" DEFAULT = "#IIf( CGI.USER_AGENT CONTAINS 
"Konqueror", 1, 0 )#">
<CFPARAM NAME="request.IsNN" DEFAULT = "#IIf( request.IsMSIE OR request.IsOpera OR 
request.IsGecko OR request.IsKonqueror, 0, 1 )#">
<CFPARAM NAME="request.IsMac" DEFAULT = "#IIf( CGI.USER_AGENT CONTAINS "Mac", 1, 0 )#">


Cheers,
-Max


At 11/20/2001 11:58 AM -0500, you wrote:
>Is there a way in CF to detect the clients browser and version or is JS the
>only way to go?
>
>
>Michael T. Tangorre
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to