RE: detecting mobile devices

2012-06-11 Thread Rick Faircloth

Sorry I didn't get back to you sooner, Jonah;
it was past my bedtime here on the East Coast of the US. :o)

Anyway, really haven't given any thought to desktops
with touch interfaces.  That's something I'll have to add
into the mix, however.

It was once the software (browsers) that web designers/developers
had to wrestle with mostly, now it seems that the hardware has
become as much, if not more of a challenge.

-Original Message-
From: Judah McAuley [mailto:ju...@wiredotter.com] 
Sent: Monday, June 11, 2012 12:13 AM
To: cf-talk
Subject: Re: detecting mobile devices


Out of curiosity, how are you accounting for desktops with touch interfaces?

cheers,
Judah

On Sun, Jun 10, 2012 at 5:25 PM, .jonah jonah@creori.com wrote:

 All the projects I'm working on now are responsive e.g. using flexible
 layouts and media queries.

 However, there are always going to be certain elements or features that
 you can't just reflow and have be an optimal experience for both mobile
 and desktop. (e.g. touch and mouse/keyboard) so, being able to know what
 kind of device you're serving to allows you to optimize things further
 by serving up the appropriate stuff.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351535
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: detecting mobile devices

2012-06-11 Thread Rick Faircloth

That's been a big challenge to my typical approach to 
interface design when incorporating mobile touch devices:
lack of hover.

I recently began to redesign one of my customers' desktop
site (while I'm still working on the transition and pros and cons
to responsive web design and its impact on my income stream... :o)
and the main menu was designed around a full-width menu dropdown
menu panel. Once the panel dropped down after a click on the main
menu item, a user could hover over various selections and see a brief
description of the content they would encounter if they clicked the
submenu option.  I realized, fairly late in the development of the menu,
that this approach would not work with 10 tablet devices which lacked
the ability to hover. So, since this is not currently a responsive design,
but separate desktop and mobile sites, I relied on the desktop site to serve
the 10 tablet users...not good when your main navigation won't work for
them.

So, I'm tweaking that menu to only respond to clicks. It's a great
limitation
on the functionality and effectiveness of the menu design, but necessary.

Perhaps we need a form of touch, like long touch, short click or something
to imitate hover on touch platforms. I'd had to see hover disappear
altogether,
and put users in a position to only find out what's behind the curtains
without
clicking and actually going to another page of content. We lose preview
ability with no hover or at least create the need for two clicks, one to see
the preview and another to see the content, if we have to rely only on
clicking/touching.



-Original Message-
From: .jonah [mailto:jonah@creori.com] 
Sent: Monday, June 11, 2012 12:17 AM
To: cf-talk
Subject: Re: detecting mobile devices


I'm not yet. (Don't have any target hardware.) :(

I would hope that the same touch events are fired in the desktop 
versions of the browsers. Otherwise it'd be just mean making sure your 
app uses click but not hover events.

On 6/10/12 9:12 PM, Judah McAuley wrote:
 Out of curiosity, how are you accounting for desktops with touch
interfaces?

 cheers,
 Judah

 On Sun, Jun 10, 2012 at 5:25 PM, .jonah jonah@creori.com wrote:
 All the projects I'm working on now are responsive e.g. using flexible
 layouts and media queries.

 However, there are always going to be certain elements or features that
 you can't just reflow and have be an optimal experience for both mobile
 and desktop. (e.g. touch and mouse/keyboard) so, being able to know what
 kind of device you're serving to allows you to optimize things further
 by serving up the appropriate stuff.
 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351538
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2012-06-11 Thread Money Pit

On Tue, Oct 4, 2011 at 2:39 PM, Dave Watts wrote:

 That looks like it's fun to maintain. Fortunately, there aren't ever
 any new mobile devices.

With any luck its not so bad.  That code is the CF version supplied by
http://detectmobilebrowsers.com.. Last updated Feb 28 according to the
site.  The CF version can be had in txt form here

http://detectmobilebrowsers.com/download/coldfusion

A scheduled cfhttp and a few cfifs, followed by a little replace()
magic and a conditional cffile write could keep an include with the
latest regex in it updated on a given server.

I have to sheepishly admit I have been using the same code for my own
corporate site.  And yes I compounded the sin by being too lazy to
write an auto-updater.  Looked into WURFL and at the time it didn't
seem accessible enough to me for what I wanted to do in the time I had
to do it.

-- 
--m@Robertson--
Janitor, The Robertson Team
mysecretbase.com

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351543
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2012-06-10 Thread RICHARD SIMPSON II

HTTP_USER_AGENT : String ReReplace (UNFINISHED)


My idea is to extract each instance before ; so we can auto detect operating 
systems, browser versions, and future devices. This data can be placed in a 
table, xml file, etc. Thus, it can be logged, massaged for css/html5, 
j-Queried, etc.

I'm not sure if this is the best way to do this. 
But it is worth a spin on some ideas. Thanks and CF STILL ROCKS.


!--- REPLACE THE FIRST '(' WITH NOTHING '', CREATING A SPACE ---
cfset TheString = REReplace(HTTP_USER_AGENT, '\(', '', 'ALL') /
!-- TheString: #TheString#br /br / --

!--- REPLACE THE FIRST ')' WITH NOTHING '', CREATING A SPACE ---
cfset TheString2 = REReplace(TheString, '\)', '', 'ALL') /
!-- TheString2: #TheString2#br /br / --

!--- REPLACE THE SPACES ' ' WITH ';', CREATING A ; SPACER ---
cfset TheString3 = replace(TheString2, ' ',';', 'ALL') /
!-- TheString3: #TheString3#br /br / --

!--- FOUND PROBLEM WITH Windows;NT;5.1;; (REPLACE THE ;; NO PUN INTENDED!) 
---
cfset TheString4 = REReplace(TheString3, '\;;', ';', 'ALL') /
!-- TheString4: #TheString4#br /br / --

WORKING OUTPUT: 
Mozilla/5.0;Windows;NT;5.1;rv:2.0.1;Gecko/20100101;Firefox/4.0.1 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351525
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2012-06-10 Thread .jonah

This JavaScript value extractor would be pretty easy to translate to CF too:

http://www.quirksmode.org/js/detect.html

On 6/10/12 10:39 AM, RICHARD SIMPSON II wrote:
 HTTP_USER_AGENT : String ReReplace (UNFINISHED)

 
 My idea is to extract each instance before ; so we can auto detect 
 operating systems, browser versions, and future devices. This data can be 
 placed in a table, xml file, etc. Thus, it can be logged, massaged for 
 css/html5, j-Queried, etc.

 I'm not sure if this is the best way to do this.
 But it is worth a spin on some ideas. Thanks and CF STILL ROCKS.
 

 !--- REPLACE THE FIRST '(' WITH NOTHING '', CREATING A SPACE ---
 cfset TheString = REReplace(HTTP_USER_AGENT, '\(', '', 'ALL') /
 !-- TheString: #TheString#br /br / --

 !--- REPLACE THE FIRST ')' WITH NOTHING '', CREATING A SPACE ---
 cfset TheString2 = REReplace(TheString, '\)', '', 'ALL') /
 !-- TheString2: #TheString2#br /br / --

 !--- REPLACE THE SPACES ' ' WITH ';', CREATING A ; SPACER ---
 cfset TheString3 = replace(TheString2, ' ',';', 'ALL') /
 !-- TheString3: #TheString3#br /br / --

 !--- FOUND PROBLEM WITH Windows;NT;5.1;; (REPLACE THE ;; NO PUN 
 INTENDED!) ---
 cfset TheString4 = REReplace(TheString3, '\;;', ';', 'ALL') /
 !-- TheString4: #TheString4#br /br / --

 WORKING OUTPUT: 
 Mozilla/5.0;Windows;NT;5.1;rv:2.0.1;Gecko/20100101;Firefox/4.0.1


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351526
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: detecting mobile devices

2012-06-10 Thread Rick Faircloth

Hi, Jonah...

Just a quick question...

Have you found the method of detecting specific mobile
devices to be preferable to Responsive Web Design?

Interested to know you thoughts and experience.

Thanks!

Rick

-Original Message-
From: .jonah [mailto:jonah@creori.com] 
Sent: Sunday, June 10, 2012 7:52 PM
To: cf-talk
Subject: Re: detecting mobile devices


This JavaScript value extractor would be pretty easy to translate to CF too:

http://www.quirksmode.org/js/detect.html

On 6/10/12 10:39 AM, RICHARD SIMPSON II wrote:
 HTTP_USER_AGENT : String ReReplace (UNFINISHED)

 
 My idea is to extract each instance before ; so we can auto detect
operating systems, browser versions, and future devices. This data can be
placed in a table, xml file, etc. Thus, it can be logged, massaged for
css/html5, j-Queried, etc.

 I'm not sure if this is the best way to do this.
 But it is worth a spin on some ideas. Thanks and CF STILL ROCKS.
 

 !--- REPLACE THE FIRST '(' WITH NOTHING '', CREATING A SPACE ---
 cfset TheString = REReplace(HTTP_USER_AGENT, '\(', '', 'ALL') /
 !-- TheString: #TheString#br /br / --

 !--- REPLACE THE FIRST ')' WITH NOTHING '', CREATING A SPACE ---
 cfset TheString2 = REReplace(TheString, '\)', '', 'ALL') /
 !-- TheString2: #TheString2#br /br / --

 !--- REPLACE THE SPACES ' ' WITH ';', CREATING A ; SPACER ---
 cfset TheString3 = replace(TheString2, ' ',';', 'ALL') /
 !-- TheString3: #TheString3#br /br / --

 !--- FOUND PROBLEM WITH Windows;NT;5.1;; (REPLACE THE ;; NO PUN
INTENDED!) ---
 cfset TheString4 = REReplace(TheString3, '\;;', ';', 'ALL') /
 !-- TheString4: #TheString4#br /br / --

 WORKING OUTPUT:
Mozilla/5.0;Windows;NT;5.1;rv:2.0.1;Gecko/20100101;Firefox/4.0.1


 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351527
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2012-06-10 Thread .jonah

All the projects I'm working on now are responsive e.g. using flexible 
layouts and media queries.

However, there are always going to be certain elements or features that 
you can't just reflow and have be an optimal experience for both mobile 
and desktop. (e.g. touch and mouse/keyboard) so, being able to know what 
kind of device you're serving to allows you to optimize things further 
by serving up the appropriate stuff.


On 6/10/12 5:11 PM, Rick Faircloth wrote:
 Hi, Jonah...

 Just a quick question...

 Have you found the method of detecting specific mobile
 devices to be preferable to Responsive Web Design?

 Interested to know you thoughts and experience.

 Thanks!

 Rick

 -Original Message-
 From: .jonah [mailto:jonah@creori.com]
 Sent: Sunday, June 10, 2012 7:52 PM
 To: cf-talk
 Subject: Re: detecting mobile devices


 This JavaScript value extractor would be pretty easy to translate to CF too:

 http://www.quirksmode.org/js/detect.html

 On 6/10/12 10:39 AM, RICHARD SIMPSON II wrote:
 HTTP_USER_AGENT : String ReReplace (UNFINISHED)

 
 My idea is to extract each instance before ; so we can auto detect
 operating systems, browser versions, and future devices. This data can be
 placed in a table, xml file, etc. Thus, it can be logged, massaged for
 css/html5, j-Queried, etc.
 I'm not sure if this is the best way to do this.
 But it is worth a spin on some ideas. Thanks and CF STILL ROCKS.
 

 !--- REPLACE THE FIRST '(' WITH NOTHING '', CREATING A SPACE ---
 cfset TheString = REReplace(HTTP_USER_AGENT, '\(', '', 'ALL') /
 !-- TheString: #TheString#br /br / --

 !--- REPLACE THE FIRST ')' WITH NOTHING '', CREATING A SPACE ---
 cfset TheString2 = REReplace(TheString, '\)', '', 'ALL') /
 !-- TheString2: #TheString2#br /br / --

 !--- REPLACE THE SPACES ' ' WITH ';', CREATING A ; SPACER ---
 cfset TheString3 = replace(TheString2, ' ',';', 'ALL') /
 !-- TheString3: #TheString3#br /br / --

 !--- FOUND PROBLEM WITH Windows;NT;5.1;; (REPLACE THE ;; NO PUN
 INTENDED!) ---
 cfset TheString4 = REReplace(TheString3, '\;;', ';', 'ALL') /
 !-- TheString4: #TheString4#br /br / --

 WORKING OUTPUT:
 Mozilla/5.0;Windows;NT;5.1;rv:2.0.1;Gecko/20100101;Firefox/4.0.1




 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351528
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: detecting mobile devices

2012-06-10 Thread Rick Faircloth

One problem that I've faced when developing mobile sites
that utilize touch instead of mouse click is with stopping
elements underneath the screen overlay from reacting to a touch.

It seems that a touch will penetrate to any layer under a screen overlay.
I haven't found a solution to this problem other than to us JS to
set the body css to display:none while the overlay is in place.

Is there a simpler way?

Rick

-Original Message-
From: .jonah [mailto:jonah@creori.com] 
Sent: Sunday, June 10, 2012 8:25 PM
To: cf-talk
Subject: Re: detecting mobile devices


All the projects I'm working on now are responsive e.g. using flexible 
layouts and media queries.

However, there are always going to be certain elements or features that 
you can't just reflow and have be an optimal experience for both mobile 
and desktop. (e.g. touch and mouse/keyboard) so, being able to know what 
kind of device you're serving to allows you to optimize things further 
by serving up the appropriate stuff.


On 6/10/12 5:11 PM, Rick Faircloth wrote:
 Hi, Jonah...

 Just a quick question...

 Have you found the method of detecting specific mobile
 devices to be preferable to Responsive Web Design?

 Interested to know you thoughts and experience.

 Thanks!

 Rick

 -Original Message-
 From: .jonah [mailto:jonah@creori.com]
 Sent: Sunday, June 10, 2012 7:52 PM
 To: cf-talk
 Subject: Re: detecting mobile devices


 This JavaScript value extractor would be pretty easy to translate to CF
too:

 http://www.quirksmode.org/js/detect.html

 On 6/10/12 10:39 AM, RICHARD SIMPSON II wrote:
 HTTP_USER_AGENT : String ReReplace (UNFINISHED)

 
 My idea is to extract each instance before ; so we can auto detect
 operating systems, browser versions, and future devices. This data can be
 placed in a table, xml file, etc. Thus, it can be logged, massaged for
 css/html5, j-Queried, etc.
 I'm not sure if this is the best way to do this.
 But it is worth a spin on some ideas. Thanks and CF STILL ROCKS.
 

 !--- REPLACE THE FIRST '(' WITH NOTHING '', CREATING A SPACE ---
 cfset TheString = REReplace(HTTP_USER_AGENT, '\(', '', 'ALL') /
 !-- TheString: #TheString#br /br / --

 !--- REPLACE THE FIRST ')' WITH NOTHING '', CREATING A SPACE ---
 cfset TheString2 = REReplace(TheString, '\)', '', 'ALL') /
 !-- TheString2: #TheString2#br /br / --

 !--- REPLACE THE SPACES ' ' WITH ';', CREATING A ; SPACER ---
 cfset TheString3 = replace(TheString2, ' ',';', 'ALL') /
 !-- TheString3: #TheString3#br /br / --

 !--- FOUND PROBLEM WITH Windows;NT;5.1;; (REPLACE THE ;; NO PUN
 INTENDED!) ---
 cfset TheString4 = REReplace(TheString3, '\;;', ';', 'ALL') /
 !-- TheString4: #TheString4#br /br / --

 WORKING OUTPUT:
 Mozilla/5.0;Windows;NT;5.1;rv:2.0.1;Gecko/20100101;Firefox/4.0.1




 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351529
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2012-06-10 Thread Judah McAuley

Out of curiosity, how are you accounting for desktops with touch interfaces?

cheers,
Judah

On Sun, Jun 10, 2012 at 5:25 PM, .jonah jonah@creori.com wrote:

 All the projects I'm working on now are responsive e.g. using flexible
 layouts and media queries.

 However, there are always going to be certain elements or features that
 you can't just reflow and have be an optimal experience for both mobile
 and desktop. (e.g. touch and mouse/keyboard) so, being able to know what
 kind of device you're serving to allows you to optimize things further
 by serving up the appropriate stuff.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351530
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2012-06-10 Thread .jonah

I'm not yet. (Don't have any target hardware.) :(

I would hope that the same touch events are fired in the desktop 
versions of the browsers. Otherwise it'd be just mean making sure your 
app uses click but not hover events.

On 6/10/12 9:12 PM, Judah McAuley wrote:
 Out of curiosity, how are you accounting for desktops with touch interfaces?

 cheers,
 Judah

 On Sun, Jun 10, 2012 at 5:25 PM, .jonah jonah@creori.com wrote:
 All the projects I'm working on now are responsive e.g. using flexible
 layouts and media queries.

 However, there are always going to be certain elements or features that
 you can't just reflow and have be an optimal experience for both mobile
 and desktop. (e.g. touch and mouse/keyboard) so, being able to know what
 kind of device you're serving to allows you to optimize things further
 by serving up the appropriate stuff.
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351531
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2012-06-10 Thread .jonah

Have you looked at how jQuery mobile handles it?


On 6/10/12 6:59 PM, Rick Faircloth wrote:
 One problem that I've faced when developing mobile sites
 that utilize touch instead of mouse click is with stopping
 elements underneath the screen overlay from reacting to a touch.

 It seems that a touch will penetrate to any layer under a screen overlay.
 I haven't found a solution to this problem other than to us JS to
 set the body css to display:none while the overlay is in place.

 Is there a simpler way?

 Rick

 -Original Message-
 From: .jonah [mailto:jonah@creori.com]
 Sent: Sunday, June 10, 2012 8:25 PM
 To: cf-talk
 Subject: Re: detecting mobile devices


 All the projects I'm working on now are responsive e.g. using flexible
 layouts and media queries.

 However, there are always going to be certain elements or features that
 you can't just reflow and have be an optimal experience for both mobile
 and desktop. (e.g. touch and mouse/keyboard) so, being able to know what
 kind of device you're serving to allows you to optimize things further
 by serving up the appropriate stuff.


 On 6/10/12 5:11 PM, Rick Faircloth wrote:
 Hi, Jonah...

 Just a quick question...

 Have you found the method of detecting specific mobile
 devices to be preferable to Responsive Web Design?

 Interested to know you thoughts and experience.

 Thanks!

 Rick

 -Original Message-
 From: .jonah [mailto:jonah@creori.com]
 Sent: Sunday, June 10, 2012 7:52 PM
 To: cf-talk
 Subject: Re: detecting mobile devices


 This JavaScript value extractor would be pretty easy to translate to CF
 too:
 http://www.quirksmode.org/js/detect.html

 On 6/10/12 10:39 AM, RICHARD SIMPSON II wrote:
 HTTP_USER_AGENT : String ReReplace (UNFINISHED)

 
 My idea is to extract each instance before ; so we can auto detect
 operating systems, browser versions, and future devices. This data can be
 placed in a table, xml file, etc. Thus, it can be logged, massaged for
 css/html5, j-Queried, etc.
 I'm not sure if this is the best way to do this.
 But it is worth a spin on some ideas. Thanks and CF STILL ROCKS.
 

 !--- REPLACE THE FIRST '(' WITH NOTHING '', CREATING A SPACE ---
 cfset TheString = REReplace(HTTP_USER_AGENT, '\(', '', 'ALL') /
 !-- TheString: #TheString#br /br / --

 !--- REPLACE THE FIRST ')' WITH NOTHING '', CREATING A SPACE ---
 cfset TheString2 = REReplace(TheString, '\)', '', 'ALL') /
 !-- TheString2: #TheString2#br /br / --

 !--- REPLACE THE SPACES ' ' WITH ';', CREATING A ; SPACER ---
 cfset TheString3 = replace(TheString2, ' ',';', 'ALL') /
 !-- TheString3: #TheString3#br /br / --

 !--- FOUND PROBLEM WITH Windows;NT;5.1;; (REPLACE THE ;; NO PUN
 INTENDED!) ---
 cfset TheString4 = REReplace(TheString3, '\;;', ';', 'ALL') /
 !-- TheString4: #TheString4#br /br / --

 WORKING OUTPUT:
 Mozilla/5.0;Windows;NT;5.1;rv:2.0.1;Gecko/20100101;Firefox/4.0.1





 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351532
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


detecting mobile devices

2011-10-04 Thread Don

We have a requirement to 'detect mobile devices'.

I've done some priliminary research and see some are using WURFL file.
Is there anyone here using this?

Also was wondering what others have been using for this? and are there any 
recommendations.

Thanks 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347876
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread John M Bliss

You should be able to compare cgi.HTTP_USER_AGENT to:

http://www.zytrax.com/tech/web/mobile_ids.html
http://whatsmyuseragent.com/CommonUserAgents.asp
etc

...and render accordingly.


On Tue, Oct 4, 2011 at 9:20 AM, Don danfar...@hotmail.com wrote:


 We have a requirement to 'detect mobile devices'.

 I've done some priliminary research and see some are using WURFL file.
 Is there anyone here using this?

 Also was wondering what others have been using for this? and are there any
 recommendations.

 Thanks

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347878
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread James Holmes

Yes: use WURFL.

This might be useful: http://cfwurfl.riaforge.org/

--
Shu Ha Ri: Agile and .NET blog
http://www.bifrost.com.au/


On 4 October 2011 22:20, Don danfar...@hotmail.com wrote:


 We have a requirement to 'detect mobile devices'.

 ... are there any recommendations.




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347879
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Don

we sort of have this limitation using html/js only. No coldfusion 
unfortunately. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347880
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Don

Yes: use WURFL.

Does this sound like a resonable solution


download WURFL file, pick out the specific few things we are looking for and 
insert that into our database. Then when we get a user-agent that is mobile we 
could detect that with a query to our db. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347881
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Michael Grant

Honestly, that seems silly to me. If you have to use js then why obfuscate
it by adapting cf to js? Why not just approach it with js natively?

http://www.hand-interactive.com/resources/detect-mobile-javascript.htm



On Tue, Oct 4, 2011 at 11:13 AM, Don danfar...@hotmail.com wrote:


 Yes: use WURFL.

 Does this sound like a resonable solution


 download WURFL file, pick out the specific few things we are looking for
 and insert that into our database. Then when we get a user-agent that is
 mobile we could detect that with a query to our db.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347882
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Don

Honestly, that seems silly to me. If you have to use js then why obfuscate
it by adapting cf to js? Why not just approach it with js natively?

http://www.hand-interactive.com/resources/detect-mobile-javascript.htm


Given your description, I'm not sure you have understood the requirement. 

Given the nature of mobile devices. It would seem that JS is limited in what it 
can detect. Even that article you mention goes onto suggest WURFL for more 
succinct data.

Also, the article mentions to be able to detect SOME devices with Javascript 
- that's way off to what we want to accomplish. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347883
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Don

 Honestly, that seems silly to me. If you have to use js then why 
 obfuscate
 it by adapting cf to js? Why not just approach it with js natively?
 
 http://www.hand-interactive.com/resources/detect-mobile-javascript.
 htm
 
 
 Given your description, I'm not sure you have understood the 
 requirement. 
 
 Given the nature of mobile devices. It would seem that JS is limited 
 in what it can detect. Even that article you mention goes onto suggest 
 WURFL for more succinct data.
 
 Also, the article mentions to be able to detect SOME devices with 
 Javascript - that's way off to what we want to accomplish. 

Furthermore, that article you mention refers to JS library on MobileESP. But 
even on The MobileESP project website they state...

and JavaScript for more limited client-side detection.

Important Caveat: The MobileESP project code is lightweight and ideal for many 
web sites. However, this project is not meant to replace other projects 
offering greater specificity and control, such as WURFL or 
HandsetDetection.com.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347884
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Michael Grant

You're right. I didn't read your reply close enough.




On Tue, Oct 4, 2011 at 11:35 AM, Don danfar...@hotmail.com wrote:


  Honestly, that seems silly to me. If you have to use js then why
  obfuscate
  it by adapting cf to js? Why not just approach it with js natively?
  
  http://www.hand-interactive.com/resources/detect-mobile-javascript.
  htm
 
 
  Given your description, I'm not sure you have understood the
  requirement.
 
  Given the nature of mobile devices. It would seem that JS is limited
  in what it can detect. Even that article you mention goes onto suggest
  WURFL for more succinct data.
 
  Also, the article mentions to be able to detect SOME devices with
  Javascript - that's way off to what we want to accomplish.

 Furthermore, that article you mention refers to JS library on MobileESP.
 But even on The MobileESP project website they state...

 and JavaScript for more limited client-side detection.

 Important Caveat: The MobileESP project code is lightweight and ideal for
 many web sites. However, this project is not meant to replace other projects
 offering greater specificity and control, such as WURFL or
 HandsetDetection.com.


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347886
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices Anyone using : MobileRedirect?

2011-10-04 Thread Don

Anyone using : MobileRedirect?

http://mobilewebdeveloper.com/index.cfm/page/purchase/item/MobileRedirect

It SEEMS pretty good. They say...

identifies more than 96% of all mobile devices (test was conducted with the 
most recent copy of WURFL 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347901
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices Anyone using : MobileRedirect?

2011-10-04 Thread Andrew Scott

the best and cheapest mobile and tablet detection is

http://wurfl.sourceforge.net/

itself.

-- 
Regards,
Andrew Scott
WebSite: http://www.andyscott.id.au/
Google+: http://plus.google.com/108193156965451149543



On Wed, Oct 5, 2011 at 4:44 AM, Don danfar...@hotmail.com wrote:


 Anyone using : MobileRedirect?

 http://mobilewebdeveloper.com/index.cfm/page/purchase/item/MobileRedirect

 It SEEMS pretty good. They say...

 identifies more than 96% of all mobile devices (test was conducted with
 the most recent copy of WURFL

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347902
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices Anyone using : MobileRedirect?

2011-10-04 Thread Don

check this out... a wurfl web service

http://www.wurflws.com/index.jsp


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347904
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: detecting mobile devices

2011-10-04 Thread Robert Harrison

This works. 

cfif 
reFindNoCase(android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge
 |maemo|midp|mmp|opera m(ob|in)i|palm( 
os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows
 (ce|phone)|xda|xiino,CGI.HTTP_USER_AGENT) GT 0 OR 
reFindNoCase(1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a 
wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r
 |s 
)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1
 
u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(
 i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( 
|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(
 |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( 
g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-|
 |o|v)|zz)|mt(50|p1|v 
)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v
 
)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|
 )|webc|whit|wi(g 
|nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-,Left(CGI.HTTP_USER_AGENT,4))
 GT 0

Yes, I am a mobile device.

cfelse

No, I'm not a mobile device

/cfif


Robert B. Harrison
Director of Interactive Services
Austin  Williams
125 Kennedy Drive, Suite 100 
Hauppauge NY 11788
P : 631.231.6600 Ext. 119 
F : 631.434.7022
http://www.austin-williams.com 

Great advertising can't be either/or.  It must be .

Plug in to our blog: AW Unplugged
http://www.austin-williams.com/unplugged


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347908
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Dave Watts

 This works.

        cfif 
 reFindNoCase(android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge
 |maemo|midp|mmp|opera m(ob|in)i|palm( 
 os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows
 (ce|phone)|xda|xiino,CGI.HTTP_USER_AGENT) GT 0 OR 
 reFindNoCase(1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a 
 wa|abac|ac(er|oo|s\-
 )|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r
  |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-
 (n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-
 d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 
 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(
 i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( 
 |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(
  |\/)|klon|kpt
 |kwc\-|kyo(c|k)|le(no|xi)|lg( 
 g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-
 cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| 
 |o|v)|zz)|mt(50|p1|v 
 )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-
 |on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-
 a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-
 |m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v 
 )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-
 |m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|
  )|webc|whit|wi(g
 |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-,Left(CGI.HTTP_USER_AGENT,4))
  GT 0

 Yes, I am a mobile device.

 cfelse

 No, I'm not a mobile device

        /cfif

That looks like it's fun to maintain. Fortunately, there aren't ever
any new mobile devices.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347910
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Josh Nathanson

What are you talking about Dave?  It's neatly split into two clauses, and
the 4-letter ones are alphabetized.  Ha ha.

-- Josh

On Tue, Oct 4, 2011 at 2:39 PM, Dave Watts dwa...@figleaf.com wrote:


  This works.
 
 cfif
 reFindNoCase(android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge
  |maemo|midp|mmp|opera m(ob|in)i|palm(
 os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows
  (ce|phone)|xda|xiino,CGI.HTTP_USER_AGENT) GT 0 OR
 reFindNoCase(1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a
 wa|abac|ac(er|oo|s\-
 
 )|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r
 |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-
 
 (n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-
 
 d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1
 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(
  i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(
 |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(
 |\/)|klon|kpt
  |kwc\-|kyo(c|k)|le(no|xi)|lg(
 g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-
  cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-|
 |o|v)|zz)|mt(50|p1|v
 )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-
 
 |on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-
 
 a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-
  |m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v
 )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-
 
 |m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|
 )|webc|whit|wi(g
 
 |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-,Left(CGI.HTTP_USER_AGENT,4))
 GT 0
 
  Yes, I am a mobile device.
 
  cfelse
 
  No, I'm not a mobile device
 
 /cfif

 That looks like it's fun to maintain. Fortunately, there aren't ever
 any new mobile devices.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347911
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Leigh

 What are you talking about Dave?  It's neatly split into two clauses, and
 the 4-letter ones are alphabetized.  Ha ha.
 
I do know whether to be scared or impressed that you managed to notice that..


-Le

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347915
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Leigh

 I do know whether to be scared or impressed that you managed to notice that..

Ack. Meant to type: I do *not* know whether to be scared or impressed  ...


-Leigh

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347916
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Michael Grant

I know I've already been beaten down for not properly reading the OP's post,
so it's a bit of the pot calling the kettle black... but he did mention:

*we sort of have this limitation using html/js only. No coldfusion
unfortunately.*


On Tue, Oct 4, 2011 at 3:47 PM, Robert Harrison
rob...@austin-williams.comwrote:


 This works.

cfif
 reFindNoCase(android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge
 |maemo|midp|mmp|opera m(ob|in)i|palm(
 os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows
 (ce|phone)|xda|xiino,CGI.HTTP_USER_AGENT) GT 0 OR
 reFindNoCase(1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a
 wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r
 |s
 )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1
 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(
 i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(
 |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(
 |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(
 g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-|
 |o|v)|zz)|mt(50|p1|v
 )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v
 )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|
 )|webc|whit|wi(g
 |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-,Left(CGI.HTTP_USER_AGENT,4))
 GT 0

 Yes, I am a mobile device.

 cfelse

 No, I'm not a mobile device

/cfif


 Robert B. Harrison
 Director of Interactive Services
 Austin  Williams
 125 Kennedy Drive, Suite 100
 Hauppauge NY 11788
 P : 631.231.6600 Ext. 119
 F : 631.434.7022
 http://www.austin-williams.com

 Great advertising can't be either/or.  It must be .

 Plug in to our blog: AW Unplugged
 http://www.austin-williams.com/unplugged


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347918
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread John M Bliss

In our defense, that limitation was not actually in OP. And he *was* posting
to CFTalk after all...   :-)
On Oct 4, 2011 5:59 PM, Michael Grant mgr...@modus.bz wrote:

 I know I've already been beaten down for not properly reading the OP's
post,
 so it's a bit of the pot calling the kettle black... but he did mention:

 *we sort of have this limitation using html/js only. No coldfusion
 unfortunately.*


 On Tue, Oct 4, 2011 at 3:47 PM, Robert Harrison
 rob...@austin-williams.comwrote:


 This works.

 cfif

reFindNoCase(android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge
 |maemo|midp|mmp|opera m(ob|in)i|palm(

os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows
 (ce|phone)|xda|xiino,CGI.HTTP_USER_AGENT) GT 0 OR
 reFindNoCase(1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a

wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r
 |s

)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1

u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(
 i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(

|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(
 |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(

g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-|
 |o|v)|zz)|mt(50|p1|v

)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v

)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|
 )|webc|whit|wi(g

|nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-,Left(CGI.HTTP_USER_AGENT,4))
 GT 0

 Yes, I am a mobile device.

 cfelse

 No, I'm not a mobile device

 /cfif


 Robert B. Harrison
 Director of Interactive Services
 Austin  Williams
 125 Kennedy Drive, Suite 100
 Hauppauge NY 11788
 P : 631.231.6600 Ext. 119
 F : 631.434.7022
 http://www.austin-williams.com

 Great advertising can't be either/or. It must be .

 Plug in to our blog: AW Unplugged
 http://www.austin-williams.com/unplugged




 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347919
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: detecting mobile devices

2011-10-04 Thread Michael Grant

True true.

On Tue, Oct 4, 2011 at 7:01 PM, John M Bliss bliss.j...@gmail.com wrote:


 In our defense, that limitation was not actually in OP. And he *was*
 posting
 to CFTalk after all...   :-)
 On Oct 4, 2011 5:59 PM, Michael Grant mgr...@modus.bz wrote:
 
  I know I've already been beaten down for not properly reading the OP's
 post,
  so it's a bit of the pot calling the kettle black... but he did mention:
 
  *we sort of have this limitation using html/js only. No coldfusion
  unfortunately.*
 
 
  On Tue, Oct 4, 2011 at 3:47 PM, Robert Harrison
  rob...@austin-williams.comwrote:
 
 
  This works.
 
  cfif
 

 reFindNoCase(android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge
  |maemo|midp|mmp|opera m(ob|in)i|palm(
 

 os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows
  (ce|phone)|xda|xiino,CGI.HTTP_USER_AGENT) GT 0 OR
  reFindNoCase(1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a
 

 wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r
  |s
 

 )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1
 

 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(
  i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(
 

 |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(
  |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(
 

 g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-|
  |o|v)|zz)|mt(50|p1|v
 

 )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v
 

 )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|
  )|webc|whit|wi(g
 

 |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-,Left(CGI.HTTP_USER_AGENT,4))
  GT 0
 
  Yes, I am a mobile device.
 
  cfelse
 
  No, I'm not a mobile device
 
  /cfif
 
 
  Robert B. Harrison
  Director of Interactive Services
  Austin  Williams
  125 Kennedy Drive, Suite 100
  Hauppauge NY 11788
  P : 631.231.6600 Ext. 119
  F : 631.434.7022
  http://www.austin-williams.com
 
  Great advertising can't be either/or. It must be .
 
  Plug in to our blog: AW Unplugged
  http://www.austin-williams.com/unplugged
 
 
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347921
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Detecting Mobile Devices

2010-10-13 Thread Steve LaBadie

I have just finished the development of a mobile site for our
university. I have placed a redirect script on the home page and
everything seems to be working. I was wondering if there is a more
streamlined approach to detecting the different devices. Right now I am
checking for specific brands. I can see this list expanding as more
devices come on the market. Any thoughts.

 

 

cfif findNoCase('blackberry', CGI.HTTP_USER_AGENT)

cflocation url=http://esu.mpill.me; addtoken=no

cfelseif findNoCase('iphone', CGI.HTTP_USER_AGENT)

cflocation url=http://esu.mpill.me; addtoken=no

cfelseif findNoCase('droid', CGI.HTTP_USER_AGENT)

cflocation url=http://esu.mpill.me; addtoken=no

cfelseif CGI.HTTP_ACCEPT CONTAINS text/vnd.wap.wml

cflocation url=http://esu.mpill.me; addtoken=no

/cfif

 

Steve LaBadie, Web Manager

East Stroudsburg University

200 Prospect St.

East Stroudsburg, Pa 18301

570-422-3999

http://www.esu.edu http://www.esu.edu 

slaba...@po-box.esu.edu mailto:slaba...@po-box.esu.edu 



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338111
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Detecting Mobile Devices

2010-10-13 Thread Andy Matthews

I'd put all this in a function, and run the user agent string through it.
Then use the function call to return a boolean. Also, I found this function
on CFLib.org. 

http://cflib.org/index.cfm?event=page.udfbyidudfid=1887

Might be worth giving it a try.



andy


-Original Message-
From: Steve LaBadie [mailto:slaba...@po-box.esu.edu] 
Sent: Wednesday, October 13, 2010 8:16 AM
To: cf-talk
Subject: Detecting Mobile Devices


I have just finished the development of a mobile site for our university. I
have placed a redirect script on the home page and everything seems to be
working. I was wondering if there is a more streamlined approach to
detecting the different devices. Right now I am checking for specific
brands. I can see this list expanding as more devices come on the market.
Any thoughts.

 

 

cfif findNoCase('blackberry', CGI.HTTP_USER_AGENT)

cflocation url=http://esu.mpill.me; addtoken=no

cfelseif findNoCase('iphone', CGI.HTTP_USER_AGENT)

cflocation url=http://esu.mpill.me; addtoken=no

cfelseif findNoCase('droid', CGI.HTTP_USER_AGENT)

cflocation url=http://esu.mpill.me; addtoken=no

cfelseif CGI.HTTP_ACCEPT CONTAINS text/vnd.wap.wml

cflocation url=http://esu.mpill.me; addtoken=no

/cfif

 

Steve LaBadie, Web Manager

East Stroudsburg University

200 Prospect St.

East Stroudsburg, Pa 18301

570-422-3999

http://www.esu.edu http://www.esu.edu 

slaba...@po-box.esu.edu mailto:slaba...@po-box.esu.edu 





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338112
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Detecting Mobile Devices

2010-10-13 Thread Dave Watts

 I have just finished the development of a mobile site for our
 university. I have placed a redirect script on the home page and
 everything seems to be working. I was wondering if there is a more
 streamlined approach to detecting the different devices. Right now I am
 checking for specific brands. I can see this list expanding as more
 devices come on the market. Any thoughts.

 cfif findNoCase('blackberry', CGI.HTTP_USER_AGENT)
 cflocation url=http://esu.mpill.me; addtoken=no
 cfelseif findNoCase('iphone', CGI.HTTP_USER_AGENT)
 cflocation url=http://esu.mpill.me; addtoken=no
 cfelseif findNoCase('droid', CGI.HTTP_USER_AGENT)
 cflocation url=http://esu.mpill.me; addtoken=no
 cfelseif CGI.HTTP_ACCEPT CONTAINS text/vnd.wap.wml
 cflocation url=http://esu.mpill.me; addtoken=no
 /cfif

Well, my first recommendation might have been to use mobile
stylesheets instead of creating a separate site, but it's probably too
late for that.

My second recommendation might be to use the scripts here:

http://detectmobilebrowser.com/

Click on the Download Scripts link in the middle of the page, then
choose ColdFusion.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338113
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Detecting Mobile Devices

2010-10-13 Thread James Holmes

Try WURFL:

http://wurfl.sourceforge.net/

--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 13 October 2010 21:16, Steve LaBadie slaba...@po-box.esu.edu wrote:

 I have just finished the development of a mobile site for our
 university. I have placed a redirect script on the home page and
 everything seems to be working. I was wondering if there is a more
 streamlined approach to detecting the different devices. Right now I am
 checking for specific brands. I can see this list expanding as more
 devices come on the market. Any thoughts.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338114
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Detecting Mobile Devices

2010-10-13 Thread Steve LaBadie

Thanks for the info everyone.

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
slaba...@po-box.esu.edu
-Original Message-
From: James Holmes [mailto:james.hol...@gmail.com] 
Sent: Wednesday, October 13, 2010 9:57 AM
To: cf-talk
Subject: Re: Detecting Mobile Devices


Try WURFL:

http://wurfl.sourceforge.net/

--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/



On 13 October 2010 21:16, Steve LaBadie slaba...@po-box.esu.edu wrote:

 I have just finished the development of a mobile site for our
 university. I have placed a redirect script on the home page and
 everything seems to be working. I was wondering if there is a more
 streamlined approach to detecting the different devices. Right now I
am
 checking for specific brands. I can see this list expanding as more
 devices come on the market. Any thoughts.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338148
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Detecting Mobile Devices

2010-10-13 Thread Eric Roberts

That regex gave me a headache...wow! hehehehe

Eric

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: Wednesday, October 13, 2010 9:54 AM
To: cf-talk
Subject: Re: Detecting Mobile Devices


 I have just finished the development of a mobile site for our
 university. I have placed a redirect script on the home page and
 everything seems to be working. I was wondering if there is a more
 streamlined approach to detecting the different devices. Right now I am
 checking for specific brands. I can see this list expanding as more
 devices come on the market. Any thoughts.

 cfif findNoCase('blackberry', CGI.HTTP_USER_AGENT)
 cflocation url=http://esu.mpill.me; addtoken=no
 cfelseif findNoCase('iphone', CGI.HTTP_USER_AGENT)
 cflocation url=http://esu.mpill.me; addtoken=no
 cfelseif findNoCase('droid', CGI.HTTP_USER_AGENT)
 cflocation url=http://esu.mpill.me; addtoken=no
 cfelseif CGI.HTTP_ACCEPT CONTAINS text/vnd.wap.wml
 cflocation url=http://esu.mpill.me; addtoken=no
 /cfif

Well, my first recommendation might have been to use mobile
stylesheets instead of creating a separate site, but it's probably too
late for that.

My second recommendation might be to use the scripts here:

http://detectmobilebrowser.com/

Click on the Download Scripts link in the middle of the page, then
choose ColdFusion.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338158
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm