Click to See Complete Forum and Search --> : How do I detect for a mobile device?


Pavon
12-17-2002, 12:32 PM
I have a standard HTML website, but I want to be able to detect when a client is comming from a mobile device, such as a PDA or a Mobile phone.

What is the best way to do this? and is it possible to determine the screen resolution of the device?

Thanks,

Fernando

Klyve1
12-20-2002, 10:40 AM
Your weblogs MAY tell you the browser used for PDA's etc, you'd have to test it out to see.

As for resolution, this can be picked up from PC but I've not heard of it from PDA's etc

Stefan
12-20-2002, 07:09 PM
If you design you page using CSS the media for handhelds is unsurprizingly called handheld.

http://www.w3.org/TR/REC-CSS2/media.html#at-media-rule

Thus you don't really need to know if the visitor has a handheld or not, the handheld wll download the apropriate CSS file itself (unless it's buggy).

Klyve1
12-21-2002, 03:16 AM
I think he is looking to see how many and from what they are accessing his pages.