RE: browser check

2001-01-09 Thread C. Hatton Humphrey

You can check this by looking at CGI.HTTP_User_Agent which will identify the
browser.  The only problem with this is different browsers return different
types.

Hatton Humphrey


 -Original Message-
 From: Jay Patton [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 09, 2001 12:43 PM
 To: CF-Talk
 Subject: browser check


 ?
 looking for help on this if anyone can...
 on our new layout for our site we have a menu script that works
 great with IE but not w/ ns. i was wondering if their was a way
 to do a check with cf that would check which browser was being
 used and if they were using NS then it would not load the menu
 script but if they were using IE then it would. ( does that make
 sense?) any ideas?

 thanks,

 Jay Patton
 Web Pro USA
 406.549.3337 ext. 203
 1.888.5WEBPRO
 www.webpro-usa.com



~~
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



Re: browser check

2001-01-09 Thread Jay Brushett

Well it depends: you mention a script. Is it written in CF or Javascript. 
If javascript it's easy (just look at developer.netscape.com and the 
javascript guide). And it's just as easy using CF.
Just check your server variables (CGI.HTTP_USER_AGENT). Then look at the 
value and parse it out as needed to get the browser name and do a check.

Jay

At 10:42 AM 1/9/2001 -0700, you wrote:
?
looking for help on this if anyone can...
on our new layout for our site we have a menu script that works great with 
IE but not w/ ns. i was wondering if their was a way to do a check with cf 
that would check which browser was being used and if they were using NS 
then it would not load the menu script but if they were using IE then it 
would. ( does that make sense?) any ideas?

thanks,

Jay Patton
Web Pro USA
406.549.3337 ext. 203
1.888.5WEBPRO
www.webpro-usa.com



~~
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



RE: browser check

2001-01-09 Thread Gary McNeel, Jr.

Go to the CF Developers Exchange look at the custom tags that do this for
you. AEBrowser (I think) is the one I use often, works great and returns a
lot of useful information on the client that you can use to make good
decisions. There are other good ones there too. I use it for checking
browser types and versions and then display messages, use different menus or
load different stylesheets.

-Gary

 -Original Message-
 From: Jay Patton [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 09, 2001 11:43 AM
 To: CF-Talk
 Subject: browser check


 ?
 looking for help on this if anyone can...
 on our new layout for our site we have a menu script that works
 great with IE but not w/ ns. i was wondering if their was a way
 to do a check with cf that would check which browser was being
 used and if they were using NS then it would not load the menu
 script but if they were using IE then it would. ( does that make
 sense?) any ideas?

 thanks,

 Jay Patton
 Web Pro USA
 406.549.3337 ext. 203
 1.888.5WEBPRO
 www.webpro-usa.com



~~
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



Re: browser check

2001-01-09 Thread Jay Patton

thanks..

Jay Patton
Web Pro USA
406.549.3337 ext. 203
1.888.5WEBPRO
www.webpro-usa.com
- Original Message -
From: "Gary McNeel, Jr." [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Tuesday, January 09, 2001 11:31 AM
Subject: RE: browser check


 Go to the CF Developers Exchange look at the custom tags that do this for
 you. AEBrowser (I think) is the one I use often, works great and returns a
 lot of useful information on the client that you can use to make good
 decisions. There are other good ones there too. I use it for checking
 browser types and versions and then display messages, use different menus
or
 load different stylesheets.

 -Gary

  -Original Message-
  From: Jay Patton [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 09, 2001 11:43 AM
  To: CF-Talk
  Subject: browser check
 
 
  ?
  looking for help on this if anyone can...
  on our new layout for our site we have a menu script that works
  great with IE but not w/ ns. i was wondering if their was a way
  to do a check with cf that would check which browser was being
  used and if they were using NS then it would not load the menu
  script but if they were using IE then it would. ( does that make
  sense?) any ideas?
 
  thanks,
 
  Jay Patton
  Web Pro USA
  406.549.3337 ext. 203
  1.888.5WEBPRO
  www.webpro-usa.com
 
 
 

~~
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



Re: browser check

2001-01-09 Thread Jay Patton

yeah i agree!
i think that if 'nutscrape' would either die off and go to hell or at least
catch up with the rest of the world it would make most of our jobs much
easier. no?

Jay Patton
Web Pro USA
406.549.3337 ext. 203
1.888.5WEBPRO
www.webpro-usa.com
- Original Message -
From: "Sean Daniels" [EMAIL PROTECTED]
To: "CF-Talk" [EMAIL PROTECTED]
Sent: Tuesday, January 09, 2001 12:09 PM
Subject: RE: browser check


 I use the cf_browsercheck custom tag, available at the tag gallery, to
do
 exactly the same thing you are talking about:

 cfset nutscrape = false

 cfif bc_browser is "netscape"
 cfset nutscrape = true
 /cfif

 cfif nutscrape
 ...code to not show kick butt dhtml menu
 cfelse
 ...code to show kick butt dhtml menu
 /cfif

 The reason I initialize the var nutscrape first is because I use it for
 other conditional stuff besides the menus. Plus I like the sound of it.

 - Sean

~~
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



Re: browser check

2001-01-09 Thread Larry C. Lyons

Jay I use this browser sniffer to check for the browser and redirect the
user to the appropriate page:

SCRIPT LANGUAGE="JavaScript"
!-- Begin
function CheckBrowser() {
 var name = navigator.appName
 if (name == "Microsoft Internet Explorer")
  url=("whereEver/index.htm");
 else
  url=("Whatever/index.htm")
 window.location=url;
}
// End --
/SCRIPT

Then I put in an onload statement like this:

body bgcolor="#00" onLoad="CheckBrowser()"

works reliably
hth,
larry

-- 
Larry C. Lyons
ColdFusion/Web Developer
EBStor.com
8870 Rixlew Lane, Suite 201
Manassas, Virginia 20109-3795
tel: (703) 393-7930 x253
fax: (703) 393-2659
http://www.ebstor.com
http://www.pacel.com
email: [EMAIL PROTECTED]

Chaos, panic, and disorder - my work here is done.
--

Jay Patton wrote:
 
 ?
 looking for help on this if anyone can...
 on our new layout for our site we have a menu script that works great with IE but
 not w/ ns. i was wondering if their was a way to do a check with cf that would check
 which browser was being used and if they were using NS then it would not load the
 menu script but if they were using IE then it would. ( does that make sense?) any
 ideas?
 
 thanks,
 
 Jay Patton
 Web Pro USA
 406.549.3337 ext. 203
 1.888.5WEBPRO
 www.webpro-usa.com
 

~~
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