Results 1 to 4 of 4

Thread: Mobile Website Detection

  1. #1
    Join Date
    May 2007
    Thanked 0 Times in 0 Posts

    Default Mobile Website Detection

    I recently read where a credit union website system can detect that you are coming from a web enabled smartphone and automatically redirect you to their mobile site. In other words they automatically display their mobile website instead of their computer website on a smartphone. How is this possible? Thanks

  2. #2
    Join Date
    Jul 2008
    Derbyshire, UK
    Thanked 599 Times in 575 Posts
    Blog Entries


    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

  3. #3
    Join Date
    May 2012
    Hitchhiking the Galaxy
    Thanked 139 Times in 139 Posts
    Blog Entries


    Quote Originally Posted by Beverleyh View Post
    Unfortunately, that method does not function correctly on devices such as ipad (it thinks its not a mobile browser, where I'm pretty sure it is)
    Take a look here
    "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
    Anime Views Forums

  4. #4
    Join Date
    Mar 2006
    Illinois, USA
    Thanked 690 Times in 678 Posts


    Mobile browsers used to be very limited in features and on black and white, perhaps text-only displays. Thus, there was a need to strictly separate them. That lasted for a while (even as colors and some graphics started to work, but other things like Javascript were limited), and may even be true today for some limited feature smart phones.
    But with something like an iPad, other tables, and the best smart phones, they actually have fully function browsers without any significant differences (no more than, say, between Firefox and Internet Explorer and Chrome on a computer, or on a Mac and Windows for any of those).

    Especially with the iPad, it's just Safari, exactly as on the computer, but operating on a mobile device.

    So... the question you need to ask first is which set of "mobile browsers" you want to target. Is there any reason Safari on an iPad shouldn't go to the full site? Why a mobile site?

    The difference is no longer between "mobile" and "desktop", but instead between features, most of the time related to input, and sometimes small screen sizes.

    So you might want to check if the "click" event is possible, to see whether you can have a certain kind of menu. It's not possible on touchscreen devices (at least not very accessible, even if it's technically included).
    Likewise, if you're worried about having tiny displays on screens, then you might want to check for a small screensize-- iPhones but NOT iPads. And so on. (But do remember zooming is easy on many smart phones, so it may not be necessary to have a separate site.)

    Personally I'm in favor of having a combined site when possible and just designing it to work everywhere. Mobile devices are moving toward being able to work with that web as-is, rather than the web needing to change to work on mobile devices.

    In short, what exactly do you want to separate? Beverley's link is one possible solution if it fits what you're looking for. If you're looking for something more specific, a good idea would be to use Javascript to detect features-- screensize, the "touch" or "click" events, and so forth, and direct them accordingly.

    And remember that in the case of touchscreen devices they actually have MORE features (in some ways) than a desktop computer. So now it's more of alternatives/variation than one just being a bad version of the other.
    Daniel - Freelance Web Design | <?php?> | <html>| espa˝ol | Deutsch | italiano | portuguŕs | catalÓ | un peu de franšais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Similar Threads

  1. Replies: 0
    Last Post: 09-23-2011, 11:12 AM
  2. Mobile Browser Detection
    By chrisfromboji in forum JavaScript
    Replies: 6
    Last Post: 06-26-2011, 04:35 PM
  3. Mobile friendly website
    By rohitnarang12 in forum Other
    Replies: 2
    Last Post: 11-10-2010, 01:28 PM
  4. Mobile website using CSS
    By lowmarklow in forum Looking for such a script or service
    Replies: 1
    Last Post: 09-29-2010, 02:14 PM
  5. Website for Mobile Phones - Please Help
    By me_myself in forum Other
    Replies: 1
    Last Post: 11-25-2008, 01:20 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts