Here's my code.....

~~~~~~~~~~~~~~~~~~~~~~~~
<cfscript>
 if (HTTP_USER_AGENT CONTAINS "Mozilla" AND HTTP_USER_AGENT DOES NOT CONTAIN
"Gecko" AND HTTP_USER_AGENT DOES NOT CONTAIN "MSIE")
  BROWSERTYPE="NS";
 else
  BROWSERTYPE="MSIE";
</cfscript>
~~~~~~~~~~~~~~~~~~~~~~~~

I am using this to detect the browser type. I am only worried about NS or
MSIE. This basically says that if it's < NS6 treat as "NS", otherwise if
it's MSIE, NS6, or anything else, treat as MSIE. I'm only using it to
determine style elements. I've been using CF_Browser in the tag gallery but
it is too bloated for my needs. Are there any holes here or obvious blunders
that I haven't considered?

Thanks,
Steve





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to