I have this in my MyGlobals.cfm (the "contains" catches all
instances)...

<!--- fix field widths for browsers --->
<cfif HTTP_USER_AGENT contains "MSIE">
 <CFSCRIPT>
    attributes.fld_sz_1="4"; //
    attributes.fld_sz_2="11"; //
    attributes.fld_sz_3="18"; //
    attributes.fld_sz_4="25"; //
    attributes.fld_sz_5="35"; //
    attributes.fld_sz_6="38"; //
    attributes.fld_sz_7="110"; //
 </CFSCRIPT>
<cfelse>
 <CFSCRIPT>
    attributes.fld_sz_1="3"; //
    attributes.fld_sz_2="7"; //
    attributes.fld_sz_3="10"; //
    attributes.fld_sz_4="15"; //
    attributes.fld_sz_5="22"; //
    attributes.fld_sz_6="28"; //
    attributes.fld_sz_7="70"; //
 </CFSCRIPT>

--
Michael Rahmn ~ <mailto:[EMAIL PROTECTED]>
Director of Information Services
Windermere Services Co.
ph 206.695.5959

| -----Original Message-----
| From: Russell K Young [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, February 20, 2001 10:45 AM
| To: Fusebox
| Subject: Recognising browser types
|
|
| Hi
|
| I am trying to set a Cold Fusion variable that will
| identify a browser.  I
| can recognise a browser type with JavaScript and I have no
| idea if it is
| possible to pass this string to a Cold Fusion variable from
| JavaSript.
|
| When printing the HTTP User agent to a page, very often the
| position of the
| browser type, say MSIE, is not a consistent position in the
| string.  Is
| there another field in the HTTP Header structure that I can
| retrieve the
| browser type from, and if so what is the field name and how
| would I print it
| to a Cold Fusion variable?
|
| Russell
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to