Google

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    







My Amazon.com Wish List

Detecting a Mobile Device in Coldfusion

Ray West over at CommunityMX posted an easy way in Coldfusion to detect if a visitor is using a mobile device using the following code:

<CFIF CGI.HTTP_ACCEPT CONTAINS "text/vnd.wap.wml">
<CFLOCATION URL="/wap/index.cfm">
</CFIF>

I have yet to test it, so please let me know if it does work. I heard from a few that it does.

Comments