RE: Detecting HTTP_USER_AGENT

2001-02-01 Thread DeVoil, Nick
CGI.HTTP_USER_AGENT? ^^^ -Original Message- From: Richard L Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 3:41 PM To: CF-Talk Subject: Detecting HTTP_USER_AGENT Hello: Does any one know of a way to use HTTP_USER_AGENT to do page redirects with CF? I am trying to

RE: Detecting HTTP_USER_AGENT

2001-02-01 Thread alistair . davidson
You could just do something very simple, like cfif Find( "MSIE", CGI.HTTP_USER_AGENT ) !--- It's Internet Explorer --- cfelse !--- Assume it's probably Netscape --- /cfif It works for me, anyway. We checked the IIS logs, and found that 98.8% of users were using IE 4+ or

RE: Detecting HTTP_USER_AGENT

2001-02-01 Thread Holger Lockertsen
Use CONTAINS instead of EQ or IS in your CFIF-statement. You might also want to add the prefix "cgi." to the variable #http_user_agent#. That is #cgi.http_user_agent#. I believe it's a good practice to tell CF that it is a cgi-variable, or else CF has to find out. #http_user_agent# could be

RE: Detecting HTTP_USER_AGENT

2001-02-01 Thread Duane Boudreau
Try this: cfif cgi.http_user_agent CONTAINS "MSIE" !--- Browser is MS IE --- cflocation url="index_ms.cfm" cfelseif cgi.http_user_agent CONTAINS "Mozilla" !--- Browser is NN --- cflocation url="index_nn.cfm" cfelse !--- Browser is unknown ---

Re: Detecting HTTP_USER_AGENT

2001-02-01 Thread Howie Hamlin
Try this: cfset "brow" eq "#HTTP_USER_AGENT#" cfif FindNoCase("Mozilla/4.7 [en]", brow) gt 0 cflocation url="index.cfm" cfelseif FindNoCase("Mozilla/4.01 (compatible; MSIE 4.01; Windows NT)", brow) gt 0 /cfif Regards, Howie Hamlin - inFusion Project Manager On-Line Data Solutions, Inc.

RE: Detecting HTTP_USER_AGENT

2001-02-01 Thread Jason Aden
On the first statement, don't you mean: cfset brow = cgi.http_user_agent You need to use an "=" not the "eq" operatior. You use the symbol for setting variables and the "eq" for comparisons. You could actually just do something like: cfif listContainsNoCase(cgi.http_user_agent,"MSIE")

RE: Detecting HTTP_USER_AGENT

2001-02-01 Thread Dylan Bromby
you don't need the CGI scope. i think you're looking for strings that are too specific in your code. try looking for the presense of MSIE or not. -Original Message- From: DeVoil, Nick [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 7:50 AM To: CF-Talk Subject: RE: Detecting

RE: Detecting HTTP_USER_AGENT

2001-02-01 Thread Lord, Heath
in my little example, It's only looking at Moxilla/4.7... I'm not sure about how Netscape reports itself in all versions, but the MSIE is a given to catch Internet Explorer. Heath -Original Message- From: Howie Hamlin [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 10:54 AM To: CF-Talk S

RE: Detecting HTTP_USER_AGENT

2001-02-01 Thread Jason Aden
, February 01, 2001 11:00 AM To: CF-Talk Subject: RE: Detecting HTTP_USER_AGENT you don't need the CGI scope. i think you're looking for strings that are too specific in your code. try looking for the presense of MSIE or not. -Original Message- From: DeVoil, Nick [mailto:[EMAIL