www.webdeveloper.com
Results 1 to 4 of 4

Thread: How do I detect for a mobile device?

  1. #1
    Join Date
    Dec 2002
    Location
    Spain
    Posts
    16

    How do I detect for a mobile device?

    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

  2. #2
    Join Date
    Nov 2002
    Location
    Hove, UK
    Posts
    160
    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

  3. #3
    Join Date
    Nov 2002
    Posts
    984
    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).
    // Stefan Huszics

  4. #4
    Join Date
    Nov 2002
    Location
    Hove, UK
    Posts
    160
    I think he is looking to see how many and from what they are accessing his pages.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles