Results 1 to 4 of 4

Thread: Mobile Website Detection

  1. #1
    Join Date
    May 2007
    Posts
    61
    Thanks
    2
    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
    Location
    Derbyshire, UK
    Posts
    1,969
    Thanks
    16
    Thanked 307 Times in 305 Posts
    Blog Entries
    11

    Default

    Focus on Function Web Design | Latest News RSS | Facebook | Twitter |
    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 |
    The only limit to creativity is imagination: JemCon.org

  3. #3
    Join Date
    May 2012
    Location
    Hitchhiking the Galaxy
    Posts
    1,013
    Thanks
    47
    Thanked 139 Times in 139 Posts
    Blog Entries
    1

    Default

    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
    Bernie

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    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, 12: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, 12:20 AM

Bookmarks

Posting Permissions

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