How do I detect a Mobile Device/Browser and redirect to another page in Coldfusion?

Posted on 2010-01-04
Last Modified: 2013-12-24
Hello & Happy New Year!!!!!

I was wondering how to write some Coldfusion code (I would assume it would have to go within some <script> tags?) to detect a mobile device / mobile browser and then redirect the user to another page that I already built which is mobile device friendly?

Thank you very very much in advance!!!!!!!!!!!!!
Question by:stracqan
    LVL 15

    Accepted Solution

    That is pretty much easy!!

    two ways:

    simple one do like this:

    Mobile descriptive page goes here
    Non mobile page goes here

    but more advanced follow this tutorial on easycfm:

    Author Closing Comment

    Fantastic!!! Thank you!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Title # Comments Views Activity
    <cffile cannot delete a file 4 28
    Script 12 98
    Apache SSL and mod_rewrite not working 8 82
    CFFILE upload help 98 86
    PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
    When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now