Log in

View Full Version : mobile device detection code


r2sillery
04-08-2006, 07:05 AM
Hello, first off, I'm a designer so be patient with me. I'm trying my best to learn how to create sites for mobile devices. I have built a site(s) ,one for non mobile devices and one for mobile devices, for a client of mine. The issue I'm running into is this: How do I code the main website www.skyworkscapital.com to redirect automatically to the Mobile device site www.skyworkscapital.com/pda upon loading?

I want the appropriate site to be loaded upon device detection. I have looked at using stylesheets with something refferred to as the @import and @device syntax but honestly I'm at a loss. If I saw code showing how to do it I'm sure I could pick it apart enough to learn it.

I'm even willing to trade services to learn this!

Hope someone can help

Thanks

Russ

Strider
04-11-2006, 04:03 PM
what language is your site developed in?

in asp.net you can determine the browser type and version when a client connects.

r2sillery
04-12-2006, 04:03 AM
it is within a html page that uses php to parse rss feeds, and our CMS system. Then some Flash. the main page is in HTML

any ideas?

GSmith
04-12-2006, 01:45 PM
Some useful pages from Microsoft:

Developing Web Sites for Mobile Devices
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guide_ppc/html/ppc_designing_web_sites_for_internet_explorer_for_pocket_pc_mgvc.asp

How to: Detect Pocket Internet Explorer from Web Servers
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guide_ppc/html/ppc_designing_web_sites_for_internet_explorer_for_pocket_pc_cheo.asp

Technical Detail:
HTML Reference for Pocket Internet Explorer
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/apippc/html/ppc__html_reference_for_pocket_internet_explorer.asp

General, with links:
Pocket Internet Explorer Overview
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/guide_ppc/html/ppc_designing_web_sites_for_internet_explorer_for_pocket_pc_lmlt.asp

And if you insist on using flash, users must download the Flash plugin from Macromedia
http://www.pocketpcthoughts.com/forums/viewtopic.php?t=47708&highlight=macromedia+flash

Or you can simply suggest that your Windows Mobile Pocket PC users download an RSS aggregator like FeederReader ;-)

Greg Smith
Author, FeederReader - Pocket PC *direct* RSS text, audio, video, podcasts
www.FeederReader.com - Download on the Road