Re: Browser Detection
To my knowledge no-one's done anything comprehensive in this arena. I've thought of transforming Mozilla.org's client sniffer JS into a UDF, but haven't had the time (it's ultra-comprehensive; be nice if it was cfscript and not javascript tho!). Most other tags I've seen just aren't up to snuff in providing detailed browser/platform information... -- Kreig Zimmerman : Sr. Technical Mgr. : [EMAIL PROTECTED] Four Eyes Productions : Brooklyn, NY - Original Message - From: Sean Daniels To: CF-Talk Sent: Thursday, May 02, 2002 9:32 AM Subject: Browser Detection What are people doing for browser detection these days? I am using a custom tag called "browsercheck" which is pretty old and I'm just curious if people have a slicker way. I have checked out the browser detection UDFs at cfdev but they don't do everything I'm looking for. I'm mainly looking to determine if the browser is "reasonably" CSS compliant. I'm thinking about writing a UDF isCss() that would return true for IE 4 and up and Netscape 6 and up and false for others (well, I would be more inclusive than that but you get the idea). Just don't want to reinvent the wheel if someone already has something to that effect. - Sean ~~ Sean Daniels Director, Engineering Marketplace Technologies, Inc (T): 207.363.7374 (C): 207.332.6340 (F): 240.269.6319 ~~ http://www.dealforce.com http://www.mergernetwork.com __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: browser detection
> From: Britta Wingenroth [mailto:[EMAIL PROTECTED]] > > This is the idea: I need to write an "if" statement based on if netscape is > being used. I would like to use the HTTP_USER_AGENT like this: > > > > This is IE: Browser is Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) This is Netscape: Browser is Mozilla/4.72 [en] (Windows NT 5.0; I) It looks like the [en] is the Netscape indicator. Someone correct me if I'm wrong. Try using Lon Lentz Applications Developer - GetLists.Com DataWarehousing and List Sales - Market your lists on the Net! [EMAIL PROTECTED] 941-541-9000 Ext. 210 -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: browser detection
[en] stand for English. I think the (compatible;) is what differentiates. You may want to look into CFX_Browserhawk from the developers exchange. That is a custom tag to determine browser versions. Chris Evans [EMAIL PROTECTED] http://www.fuseware.com -Original Message- From: Lon Lentz [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 01, 2000 8:58 AM To: [EMAIL PROTECTED] Subject: RE: browser detection > From: Britta Wingenroth [mailto:[EMAIL PROTECTED]] > > This is the idea: I need to write an "if" statement based on if netscape is > being used. I would like to use the HTTP_USER_AGENT like this: > > > > This is IE: Browser is Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) This is Netscape: Browser is Mozilla/4.72 [en] (Windows NT 5.0; I) It looks like the [en] is the Netscape indicator. Someone correct me if I'm wrong. Try using Lon Lentz Applications Developer - GetLists.Com DataWarehousing and List Sales - Market your lists on the Net! [EMAIL PROTECTED] 941-541-9000 Ext. 210 -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: browser detection
Hello Britta, I use this code to detect the browser on the server side, it may work for you <-- code > <-- End code > Hope this help Wednesday, Wednesday, May 31, 2000, you wrote to me: BW> Anyone know of a way to write a statement like this that works? BW> This is the idea: I need to write an "if" statement based on if netscape is BW> being used. I would like to use the HTTP_USER_AGENT like this: BW> BW> BW> put netscape version here BW> BW> put ie version here BW> BW> Any help is much appreciated! BW> Britta BW> -- BW> Archives: http://www.eGroups.com/list/cf-talk BW> To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. Thanks, Mike Hughes Freelance Cold Fusion Applications Developer mailto:[EMAIL PROTECTED] -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Browser Detection
-- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- > -Original Message- > From: Gavin Myers [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 17, 2000 8:48 AM > To: CF-Talk > Subject: Browser Detection > > > Now i feel dumb for recently deleating all of that past browser detection > talk > > this is all i want to do: > verify that whomever is using IE 5.0 or greater > > so if I use > > CGI.http_user_agent Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) > > How can I just look for the MSIE 5.0, or is there something else > I should be > looking for? > -- > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf _talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Browser Detection
Gavin; Seem you should be able to say: DO This DO this Larry Juncker Senior Cold Fusion Programmer Heartland Communications Group, Inc. -Original Message- From: Gavin Myers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 17, 2000 10:48 AM To: CF-Talk Subject: Browser Detection Now i feel dumb for recently deleating all of that past browser detection talk this is all i want to do: verify that whomever is using IE 5.0 or greater so if I use CGI.http_user_agent Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) How can I just look for the MSIE 5.0, or is there something else I should be looking for? -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Browser Detection
You can use this script -Original Message- From: Gavin Myers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 17, 2000 11:48 AM To: CF-Talk Subject: Browser Detection Now i feel dumb for recently deleating all of that past browser detection talk this is all i want to do: verify that whomever is using IE 5.0 or greater so if I use CGI.http_user_agent Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) How can I just look for the MSIE 5.0, or is there something else I should be looking for? -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Browser Detection
see cf_browser in the allaire tag gallery. Paul > -Original Message- > From: Gavin Myers [mailto:[EMAIL PROTECTED]] > Sent: 17 October 2000 16:48 > To: CF-Talk > Subject: Browser Detection > > > Now i feel dumb for recently deleating all of that past browser detection > talk > > this is all i want to do: > verify that whomever is using IE 5.0 or greater > > so if I use > > CGI.http_user_agent Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) > > How can I just look for the MSIE 5.0, or is there something else > I should be > looking for? > -- > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf _talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: Browser Detection
Or even: -Original Message- From: Warrick, Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 18 October 2000 2:03 To: CF-Talk Subject: RE: Browser Detection -- Mark Warrick Phone: (714) 547-5386 Efax.com Fax: (801) 730-7289 Personal Email: [EMAIL PROTECTED] Personal URL: http://www.warrick.net Business Email: [EMAIL PROTECTED] Business URL: http://www.fusioneers.com ICQ: 346566 -- > -Original Message- > From: Gavin Myers [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 17, 2000 8:48 AM > To: CF-Talk > Subject: Browser Detection > > > Now i feel dumb for recently deleating all of that past browser detection > talk > > this is all i want to do: > verify that whomever is using IE 5.0 or greater > > so if I use > > CGI.http_user_agent Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) > > How can I just look for the MSIE 5.0, or is there something else > I should be > looking for? > -- > > Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ > To Unsubscribe visit > http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf _talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]
RE: browser detection UDF
Go to: www.cflib.org all sort of goodies Thanks, Jason -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 9:45 AM To: CF-Talk Subject: browser detection UDF Someone posted a UDF that detected the browser.. Does someone have this handy? I have misplaced it :0) Thanks, Clint __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: browser detection UDF
Actually I'm pretty sure we don't have one for this yet. So... any enterprising developers out there want to submit one? === Raymond Camden, Principal Spectra Compliance Engineer for Macromedia Email: [EMAIL PROTECTED] Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -Original Message- > From: Jason Larson [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 21, 2002 12:20 PM > To: CF-Talk > Subject: RE: browser detection UDF > > > Go to: www.cflib.org all sort of goodies > > Thanks, > Jason > > > > -Original Message- > From: Clint Tredway [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 21, 2002 9:45 AM > To: CF-Talk > Subject: browser detection UDF > > Someone posted a UDF that detected the browser.. > > Does someone have this handy? I have misplaced it :0) > > Thanks, > Clint > > __ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: browser detection UDF
I looked before I posted my request. Clint -Original Message- From: Jason Larson [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 11:20 AM To: CF-Talk Subject: RE: browser detection UDF Go to: www.cflib.org all sort of goodies Thanks, Jason -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 9:45 AM To: CF-Talk Subject: browser detection UDF Someone posted a UDF that detected the browser.. Does someone have this handy? I have misplaced it :0) Thanks, Clint __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: browser detection UDF
A free UDF browser check library is available at CFDev. http://www.cfdev.com/products/productdetail.cfm?id=1003 It's simple to use, but please note that we can't provide support for our free tags and UDFs. You can of course post questions to our forums for answers from other developers with experience using these. Greg Alton CFDev - Original Message - From: "Raymond Camden" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, March 21, 2002 12:21 PM Subject: RE: browser detection UDF > Actually I'm pretty sure we don't have one for this yet. So... any > enterprising developers out there want to submit one? > > === > Raymond Camden, Principal Spectra Compliance Engineer for Macromedia > > Email: [EMAIL PROTECTED] > Yahoo IM : morpheus > > "My ally is the Force, and a powerful ally it is." - Yoda > > > -Original Message- > > From: Jason Larson [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, March 21, 2002 12:20 PM > > To: CF-Talk > > Subject: RE: browser detection UDF > > > > > > Go to: www.cflib.org all sort of goodies > > > > Thanks, > > Jason > > > > > > > > -Original Message- > > From: Clint Tredway [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, March 21, 2002 9:45 AM > > To: CF-Talk > > Subject: browser detection UDF > > > > Someone posted a UDF that detected the browser.. > > > > Does someone have this handy? I have misplaced it :0) > > > > Thanks, > > Clint > > > > > __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Browser Detection UDF
I don't think you need a UDF for that... look at the CGI.HTTP_USER_AGENT for that info. C. Hatton Humphrey, Developer Fisher, Towne & Associates 716-839-2141 x336 [EMAIL PROTECTED] > -Original Message- > From: Russel Madere [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 21, 2002 3:55 PM > To: CF-Talk > Subject: Browser Detection UDF > > > Does anyone have a UDF that will detect the type and version of a user's > browser? > > I checks CFLib.org and could not find one. I can probably write > one, but I > need the time to do it and it is outside of the domain of the current > application I am working on. > > Russel > __ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Browser Detection UDF
I found a custom tag and just converted it over to a UDF, hope it helps! getBrowser(cgi.http_user_agent); #getBrowser.browsername# - #getBrowser.browserVersion# function getBrowser(user_agent){ browserName="Unknown"; browserVersion="0"; if (Len(user_agent)) { if (Find("MSIE",user_agent)) { browserName="MSIE"; browserVersion=Val(RemoveChars(user_agent,1,Find("MSIE",user_agent)+4)); } else { if (Find("Mozilla",user_agent)) { if (not Find("compatible",user_agent)) { browserName="Netscape"; browserVersion=Val(RemoveChars(user_agent,1,Find("/",user_agent))); } else { browserName="compatible"; } } if (Find("ColdFusion",user_agent)) { browserName="ColdFusion"; } } } getBrowser.browserName=browserName; getBrowser.browserVersion=browserVersion; } __ steve oliver cresco technologies, inc. http://www.crescotech.com -Original Message- From: Russel Madere [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 3:55 PM To: CF-Talk Subject: Browser Detection UDF Does anyone have a UDF that will detect the type and version of a user's browser? I checks CFLib.org and could not find one. I can probably write one, but I need the time to do it and it is outside of the domain of the current application I am working on. Russel __ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Browser Detection UDF
I just saw one in the exchange on macromedias site earlier today ... didn't download it though so have no opinion about it ... I think I searched for browser detect ::: -Original Message- ::: From: Russel Madere [mailto:[EMAIL PROTECTED]] ::: Sent: Monday, January 21, 2002 1:55 PM ::: To: CF-Talk ::: Subject: Browser Detection UDF ::: ::: ::: Does anyone have a UDF that will detect the type and ::: version of a user's ::: browser? ::: ::: I checks CFLib.org and could not find one. I can probably ::: write one, but I ::: need the time to do it and it is outside of the domain of ::: the current ::: application I am working on. ::: ::: Russel ::: ::: __ ::: Why Share? ::: Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB ::: HD / 20 GB MO/XFER ::: Instant Activation · $99/Month · Free Setup ::: http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc ::: FAQ: http://www.thenetprofits.co.uk/coldfusion/faq ::: Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ ::: Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Browser Detection UDF
This is perfect! Thanks. I hope to put this into production. Russel -Original Message- From: Steve Oliver [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 3:12 PM To: CF-Talk Subject: RE: Browser Detection UDF I found a custom tag and just converted it over to a UDF, hope it helps! getBrowser(cgi.http_user_agent); #getBrowser.browsername# - #getBrowser.browserVersion# function getBrowser(user_agent){ browserName="Unknown"; browserVersion="0"; if (Len(user_agent)) { if (Find("MSIE",user_agent)) browserName="MSIE"; browserVersion=Val(RemoveChars(user_agent,1,Find("MSIE",user_agent)+4)); } else { if (Find("Mozilla",user_agent)) if (not Find("compatible",user_agent)) browserName="Netscape"; browserVersion=Val(RemoveChars(user_agent,1,Find("/",user_agent))); } else { browserName="compatible"; } } if (Find("ColdFusion",user_agent)) browserName="ColdFusion"; } } } getBrowser.browserName=browserName; getBrowser.browserVersion=browserVersion; } __ steve oliver cresco technologies, inc. http://www.crescotech.com -Original Message- From: Russel Madere [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 3:55 PM To: CF-Talk Subject: Browser Detection UDF Does anyone have a UDF that will detect the type and version of a user's browser? I checks CFLib.org and could not find one. I can probably write one, but I need the time to do it and it is outside of the domain of the current application I am working on. Russel __ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Browser Detection UDF
here's one: http://www.cfdev.com/products/productdetail.cfm/id/1003 -Original Message- From: Russel Madere [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 3:55 PM To: CF-Talk Subject: Browser Detection UDF Does anyone have a UDF that will detect the type and version of a user's browser? I checks CFLib.org and could not find one. I can probably write one, but I need the time to do it and it is outside of the domain of the current application I am working on. Russel __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: browser detection script
If you're looking for something server side, try Browserhawk: http://www.browserhawk.com/ - Original Message - From: Bryan Stevenson <[EMAIL PROTECTED]> Date: Wednesday, April 7, 2004 3:28 pm Subject: browser detection script > Hey All, > > Does anybody have a rock solid _javascript_ script for browser > detection? or a > CF code snippet? > > I'm under the gun and don't really want to re-invent the wheel > using this > script (it's kind of overkillbut very good): > http://webreference.com/tools/browser/_javascript_.html > > I'm not after anything fancyjust accurate ;-) I essentially > want to > redirect those with browser we won't be supporting. > > TIA > > Cheers > > Bryan Stevenson B.Comm. > VP & Director of E-Commerce Development > Electric Edge Systems Group Inc. > t. 250.920.8830 > e. [EMAIL PROTECTED] > > - > Macromedia Associate Partner > www.macromedia.com > - > Vancouver Island ColdFusion Users Group > Founder & Director > www.cfug-vancouverisland.com > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: browser detection script
Oh ya...and free is preferableI will re-invent the wheel if I have to ;-) Thanks though Kwang Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com - Original Message - From: Kwang Suh To: CF-Talk Sent: Wednesday, April 07, 2004 2:35 PM Subject: Re: browser detection script If you're looking for something server side, try Browserhawk: http://www.browserhawk.com/ - Original Message - From: Bryan Stevenson <[EMAIL PROTECTED]> Date: Wednesday, April 7, 2004 3:28 pm Subject: browser detection script > Hey All, > > Does anybody have a rock solid _javascript_ script for browser > detection? or a > CF code snippet? > > I'm under the gun and don't really want to re-invent the wheel > using this > script (it's kind of overkillbut very good): > http://webreference.com/tools/browser/_javascript_.html > > I'm not after anything fancyjust accurate ;-) I essentially > want to > redirect those with browser we won't be supporting. > > TIA > > Cheers > > Bryan Stevenson B.Comm. > VP & Director of E-Commerce Development > Electric Edge Systems Group Inc. > t. 250.920.8830 > e. [EMAIL PROTECTED] > > - > Macromedia Associate Partner > www.macromedia.com > - > Vancouver Island ColdFusion Users Group > Founder & Director > www.cfug-vancouverisland.com > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: browser detection script
Bryan Stevenson wrote: > > Does anybody have a rock solid _javascript_ script for browser detection? or a > CF code snippet? > > I'm under the gun and don't really want to re-invent the wheel using this > script (it's kind of overkillbut very good): > http://webreference.com/tools/browser/_javascript_.html > > I'm not after anything fancyjust accurate ;-) I essentially want to > redirect those with browser we won't be supporting. The best way to do so is to test if the browser has the required functionality, not to test for browser name (changes), version (changes even faster) or security settings. Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: browser detection script
Thanks Jochembut how do I test if a browser will render the site as intended (i.e. in NS 4 this site looks WAY off the intended look). Mabye I can simplify this with a little help from CF-Talkers... CGI.USER_AGENT spits out something like so: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) If someone can tell me what IE 4/5/6 and Netscape 4/6/7 would spit out then I can whip this puppy up in a few minutes (I'm sure it's just looking at the part in brakets for "MSIE" etcbut I know there are some odd ones. Even better would be if someone has a list of what IE/Netscape/Gecko/Safari/Opera would spit out ;-) Cheers Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com - Original Message - From: Jochem van Dieten To: CF-Talk Sent: Wednesday, April 07, 2004 2:49 PM Subject: Re: browser detection script Bryan Stevenson wrote: > > Does anybody have a rock solid _javascript_ script for browser detection? or a > CF code snippet? > > I'm under the gun and don't really want to re-invent the wheel using this > script (it's kind of overkillbut very good): > http://webreference.com/tools/browser/_javascript_.html > > I'm not after anything fancyjust accurate ;-) I essentially want to > redirect those with browser we won't be supporting. The best way to do so is to test if the browser has the required functionality, not to test for browser name (changes), version (changes even faster) or security settings. Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: browser detection script
Bryan Stevenson wrote: > Thanks Jochembut how do I test if a browser will render the site as intended (i.e. in NS 4 this site looks WAY off the intended look). You use certain functions, right? Just test for those :-) Instead of (pseudocode): function getIt(It) { return document.getElementById(It); } Use: function getIt(It) { if (document.getElementById) { return document.getElementById(It); } else { redirectLousyBrowser(); return false; } } Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: browser detection script
what Jochem is suggesting is testing for the capability of any browser to be able to correctly render your code. back in the day, when rollover scripts were the 'big thing', not all browsers supported images as objects. instead of testing for each browser, the standard test was: if (document.images) based on that conditional, any browser that supported the image object would support your rollovers. I don't do too much DHTML, so I'm really not sure what kind of object detection you'd need to do today (nor do I know specifically what functionality you're going for). look at the source for some DHTML menus. You'll see things like: if (document.all) or if (document.layers) I know this doesn't completely answer your question...but hopefully it'll be enough to give you a head start. Charlie - Original Message - From: "Bryan Stevenson" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, April 07, 2004 3:07 PM Subject: Re: browser detection script > Thanks Jochembut how do I test if a browser will render the site as intended (i.e. in NS 4 this site looks WAY off the intended look). > > Mabye I can simplify this with a little help from CF-Talkers... > > CGI.USER_AGENT spits out something like so: > Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) > > If someone can tell me what IE 4/5/6 and Netscape 4/6/7 would spit out then I can whip this puppy up in a few minutes (I'm sure it's just looking at the part in brakets for "MSIE" etcbut I know there are some odd ones. > > Even better would be if someone has a list of what IE/Netscape/Gecko/Safari/Opera would spit out ;-) > > Cheers > > Bryan Stevenson B.Comm. > VP & Director of E-Commerce Development > Electric Edge Systems Group Inc. > t. 250.920.8830 > e. [EMAIL PROTECTED] > > - > Macromedia Associate Partner > www.macromedia.com > - > Vancouver Island ColdFusion Users Group > Founder & Director > www.cfug-vancouverisland.com > - Original Message - > From: Jochem van Dieten > To: CF-Talk > Sent: Wednesday, April 07, 2004 2:49 PM > Subject: Re: browser detection script > > > Bryan Stevenson wrote: > > > > Does anybody have a rock solid _javascript_ script for browser detection? or a > > CF code snippet? > > > > I'm under the gun and don't really want to re-invent the wheel using this > > script (it's kind of overkillbut very good): > > http://webreference.com/tools/browser/_javascript_.html > > > > I'm not after anything fancyjust accurate ;-) I essentially want to > > redirect those with browser we won't be supporting. > > The best way to do so is to test if the browser has the required > functionality, not to test for browser name (changes), version > (changes even faster) or security settings. > > Jochem > > -- > I don't get it > immigrants don't work > and steal our jobs >- Loesje > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: browser detection script
That's fine for JS but I think the question here was about layout of HTML and CSS support. You can't use JS to tell if a browser supports the HTML/CSS you're using without browser sniffing. But I think the only real concern is NN4 or not NN4. NN4 is the only old browser we encounter on a regular basis since for some reason people still install it on new PCs. Most new browsers are consistent enough to not need to browser sniff. Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 07, 2004 6:36 PM > To: CF-Talk > Subject: Re: browser detection script > > what Jochem is suggesting is testing for the capability of > any browser to be > able to correctly render your code. > > back in the day, when rollover scripts were the 'big thing', not all > browsers supported images as objects. instead of testing for > each browser, > the standard test was: > > if (document.images) > > based on that conditional, any browser that supported the > image object would > support your rollovers. > > I don't do too much DHTML, so I'm really not sure what kind of object > detection you'd need to do today (nor do I know specifically what > functionality you're going for). > > look at the source for some DHTML menus. You'll see things like: > > if (document.all) > > or > > if (document.layers) > > I know this doesn't completely answer your question...but > hopefully it'll be > enough to give you a head start. > > Charlie > > - Original Message - > From: "Bryan Stevenson" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Wednesday, April 07, 2004 3:07 PM > Subject: Re: browser detection script > > > Thanks Jochembut how do I test if a browser will render > the site as > intended (i.e. in NS 4 this site looks WAY off the intended look). > > > > Mabye I can simplify this with a little help from CF-Talkers... > > > > CGI.USER_AGENT spits out something like so: > > Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) > > > > If someone can tell me what IE 4/5/6 and Netscape 4/6/7 > would spit out > then I can whip this puppy up in a few minutes (I'm sure it's > just looking > at the part in brakets for "MSIE" etcbut I know there are > some odd ones. > > > > Even better would be if someone has a list of what > IE/Netscape/Gecko/Safari/Opera would spit out ;-) > > > > Cheers > > > > Bryan Stevenson B.Comm. > > VP & Director of E-Commerce Development > > Electric Edge Systems Group Inc. > > t. 250.920.8830 > > e. [EMAIL PROTECTED] > > > > ------------- > > Macromedia Associate Partner > > www.macromedia.com > > - > > Vancouver Island ColdFusion Users Group > > Founder & Director > > www.cfug-vancouverisland.com > > - Original Message - > > From: Jochem van Dieten > > To: CF-Talk > > Sent: Wednesday, April 07, 2004 2:49 PM > > Subject: Re: browser detection script > > > > > > Bryan Stevenson wrote: > > > > > > Does anybody have a rock solid _javascript_ script for browser > detection? or a > > > CF code snippet? > > > > > > I'm under the gun and don't really want to re-invent > the wheel using > this > > > script (it's kind of overkillbut very good): > > > http://webreference.com/tools/browser/_javascript_.html > > > > > > I'm not after anything fancyjust accurate ;-) I > essentially want > to > > > redirect those with browser we won't be supporting. > > > > The best way to do so is to test if the browser has the required > > functionality, not to test for browser name (changes), version > > (changes even faster) or security settings. > > > > Jochem > > > > -- > > I don't get it > > immigrants don't work > > and steal our jobs > >- Loesje > > > > > > > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: browser detection script
h...well no it's not an issue of functions...it's which browsers and versions display the site as intended (we're talking layout and design not functionality). Anywaysthanks to all for their advice...I am now re-inventing the wheel ;-) I've found various databases of user_agents and I will use that to make a simple chunk of CF code to read CGI.User_Agent and look for the browsers I want to let in (or warn that their browser is untested). Basically IE 4/5/6 and Netscape 7 get in...NS 4 gets told to get a new browser...hehe...and all others get the warning "site not tested with oyur browser and it may not look/function as intendedif it doesn't we ain't gonna help you" or something along those lines ;-) Cheers Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com - Original Message - From: Jochem van Dieten To: CF-Talk Sent: Wednesday, April 07, 2004 3:27 PM Subject: Re: browser detection script Bryan Stevenson wrote: > Thanks Jochembut how do I test if a browser will render the site as intended (i.e. in NS 4 this site looks WAY off the intended look). You use certain functions, right? Just test for those :-) Instead of (pseudocode): function getIt(It) { return document.getElementById(It); } Use: function getIt(It) { if (document.getElementById) { return document.getElementById(It); } else { redirectLousyBrowser(); return false; } } Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: browser detection script
Bingo Sam!! Yep...just wanna kick the baddies Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com - Original Message - From: Samuel R. Neff To: CF-Talk Sent: Wednesday, April 07, 2004 3:58 PM Subject: RE: browser detection script That's fine for JS but I think the question here was about layout of HTML and CSS support. You can't use JS to tell if a browser supports the HTML/CSS you're using without browser sniffing. But I think the only real concern is NN4 or not NN4. NN4 is the only old browser we encounter on a regular basis since for some reason people still install it on new PCs. Most new browsers are consistent enough to not need to browser sniff. Sam Blog http://www.rewindlife.com TeamMM http://www.macromedia.com/go/team > -Original Message- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 07, 2004 6:36 PM > To: CF-Talk > Subject: Re: browser detection script > > what Jochem is suggesting is testing for the capability of > any browser to be > able to correctly render your code. > > back in the day, when rollover scripts were the 'big thing', not all > browsers supported images as objects. instead of testing for > each browser, > the standard test was: > > if (document.images) > > based on that conditional, any browser that supported the > image object would > support your rollovers. > > I don't do too much DHTML, so I'm really not sure what kind of object > detection you'd need to do today (nor do I know specifically what > functionality you're going for). > > look at the source for some DHTML menus. You'll see things like: > > if (document.all) > > or > > if (document.layers) > > I know this doesn't completely answer your question...but > hopefully it'll be > enough to give you a head start. > > Charlie > > - Original Message - > From: "Bryan Stevenson" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Wednesday, April 07, 2004 3:07 PM > Subject: Re: browser detection script > > > Thanks Jochembut how do I test if a browser will render > the site as > intended (i.e. in NS 4 this site looks WAY off the intended look). > > > > Mabye I can simplify this with a little help from CF-Talkers... > > > > CGI.USER_AGENT spits out something like so: > > Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) > > > > If someone can tell me what IE 4/5/6 and Netscape 4/6/7 > would spit out > then I can whip this puppy up in a few minutes (I'm sure it's > just looking > at the part in brakets for "MSIE" etcbut I know there are > some odd ones. > > > > Even better would be if someone has a list of what > IE/Netscape/Gecko/Safari/Opera would spit out ;-) > > > > Cheers > > > > Bryan Stevenson B.Comm. > > VP & Director of E-Commerce Development > > Electric Edge Systems Group Inc. > > t. 250.920.8830 > > e. [EMAIL PROTECTED] > > > > --------- > > Macromedia Associate Partner > > www.macromedia.com > > - > > Vancouver Island ColdFusion Users Group > > Founder & Director > > www.cfug-vancouverisland.com > > - Original Message - > > From: Jochem van Dieten > > To: CF-Talk > > Sent: Wednesday, April 07, 2004 2:49 PM > > Subject: Re: browser detection script > > > > > > Bryan Stevenson wrote: > > > > > > Does anybody have a rock solid _javascript_ script for browser > detection? or a > > > CF code snippet? > > > > > > I'm under the gun and don't really want to re-invent > the wheel using > this > > > script (it's kind of overkillbut very good): > > > http://webreference.com/tools/browser/_javascript_.html > > > > > > I'm not after anythin
RE: Browser detection w/CF
Hi Doug, Try this.. Your Browser: NETSCAPE 6 NETSCAPE 4.76 INTERNET EXPLORER WHO KNOWS!!! There is a cool custom tag out there as well.. Try here: http://www.digital-jungle.com/cfuseragent/ Mike -Original Message- From: Douglas L. Brown [mailto:[EMAIL PROTECTED]] Sent: Friday, November 23, 2001 12:46 PM To: CF-Talk Subject: Browser detection w/CF Does anyone know how I can check for browser type and version with CF? I really do not want to use JS to do this, although I am currently doing it that way. I would imagine a CGI car, but not sure how to do it. http://www.carnivorepc.com";> ~~ 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/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: Browser detection w/CF
There's a good custom tag called "CF_BrowserCheck" on the Developer's Exchange that supports many browsers, including Opera and Lynx. http://devex.allaire.com/developer/gallery/info.cfm?ID=CA34712E-2830-11D4-AA 9700508B94F380&method=Full Peter Tilbrook ([EMAIL PROTECTED]) Macromedia ColdFusion Applications Developer Cubok Pty. Ltd. Units 7-10 Australian Heritage Village Watson ACT 2602 AUSTRALIA http://www.cubok.com Mobile: 0401 973 415 Tel: +61-2-6262-4080 Fax: +61-2-6262-4081 ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists