Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    Jul 2007
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Mobile Browser Detection

    Hey,
    I'm working on a mobile website and need some help with my mobile browser detection script. I have it working for iPhone, iPod Touch, and Windows Mobile Devices.

    I need help getting it to detect for Blackberry Browser (Blackberry Devices), Blazer Browser (Palm Devices), Opera Mini Browser, Opera Mobile Browser, and other mobile browsers if possible.

    Does anyone know how to modify (and test if you have a phone to test with, as I don't have all of these devices) this javascript?:
    Code:
    if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
    {location.replace("mobile.html");}
    if((navigator.appVersion.indexOf("Windows CE")>0))
    {location.replace("mobile.html");}
    Thanks for your help!
    -Chris

  • #2
    New to the CF scene
    Join Date
    May 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    for handset detection, mobile screen size and mobile phone capabilities, it might be worth you checking out www.handsetdetection.com

    They have a service which you can link into your website. after the mobile browser is detected, you can then display the appropriate view for each device.

  • #3
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Apache Mobile Filter

    I have published the last version(2.04) of "Apache Mobile Filter", this open source project has in the first seven months, more than 900 downloads from sourceforge and I suppose the same from CPAN.

    The Apache Mobile Filter allows you to access WURFL from any programming language, not just Java and php that is traditionally used for dynamic mobile web sites.

    The module detects the mobile device and passes the WURFL capabilities on to the other web application as environment variables. It can also be used to resize images on the fly to adapt to the screen size of the mobile device.

    Try it and let me know your opinion.

    For more info: http://www.idelfuschini.it/it/apache...ilter-v2x.html

    I have made two test pages:

    PC Test Page: http://apachemobilefilter.nogoogle.it/php_test.php

    Mobile Test Page: http://apachemobilefilter.nogoogle.it

  • #4
    New to the CF scene
    Join Date
    Jul 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mobile Browser Detection and Redirection

    I have created this article on mobile browser detection and redirection using php. There is a download link for the examples that you may feel free to use. My example enables automatic redirection based on device type with the ability to let the user specify a preference for a page other than the default for their device using cookies.

    http://www.mlynn.org/2010/06/mobile-...tion-with-php/

    Hope you enjoy!

    Regards,
    Mike

  • #5
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Where could i find a list of all mobile browsers ? I need to write a condition that will show the proper page depending on the user-agent. The javascript condition is easy but the list of mobile handsets is constantly changing
    Anyway it could be valuable if someone would develop a feed that would maintain this list (of user-agents) up to date.


    ______________________
    Assurance auto

  • #6
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Apache Mobile Filter

    I have post 2 years ago about Apache Mobile Filter, now there is several news about AMF.
    My project now got a dedicate domain:

    http://www.apachemobilefilter.org

    a wiki:

    http://wiki.apachemobilefilter.org

    and support 3 of common used device repository 51Degrees, DetectRight and WURFL.

  • #7
    Banned
    Join Date
    Apr 2011
    Posts
    656
    Thanks
    14
    Thanked 69 Times in 69 Posts
    One option is to use Media Queries to assign stylesheets according to the device the visitor is using.


  •  

    Posting Permissions

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