Go Back   CodingForums.com > :: Client side development > General web building > Building for mobile devices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-30-2008, 04:08 AM   PM User | #1
chrisfromboji
New Coder

 
Join Date: Jul 2007
Posts: 25
Thanks: 1
Thanked 0 Times in 0 Posts
chrisfromboji is an unknown quantity at this point
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
chrisfromboji is offline   Reply With Quote
Old 07-10-2008, 08:07 AM   PM User | #2
davemanjra
New to the CF scene

 
Join Date: May 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
davemanjra is an unknown quantity at this point
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.
davemanjra is offline   Reply With Quote
Old 07-30-2009, 09:15 AM   PM User | #3
ifuschini
New to the CF scene

 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ifuschini is an unknown quantity at this point
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
ifuschini is offline   Reply With Quote
Old 07-09-2010, 09:11 PM   PM User | #4
mlynn
New to the CF scene

 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mlynn is an unknown quantity at this point
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
mlynn is offline   Reply With Quote
Old 12-17-2010, 10:05 PM   PM User | #5
raymonddenis
New to the CF scene

 
Join Date: Dec 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
raymonddenis is an unknown quantity at this point
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
raymonddenis is offline   Reply With Quote
Old 03-07-2012, 07:57 PM   PM User | #6
ifuschini
New to the CF scene

 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ifuschini is an unknown quantity at this point
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.
ifuschini is offline   Reply With Quote
Old 03-08-2012, 10:33 AM   PM User | #7
webdev1958
Banned

 
Join Date: Apr 2011
Posts: 656
Thanks: 14
Thanked 69 Times in 69 Posts
webdev1958 can only hope to improve
One option is to use Media Queries to assign stylesheets according to the device the visitor is using.
webdev1958 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:12 PM.


Advertisement
Log in to turn off these ads.