www.webdeveloper.com
Results 1 to 3 of 3

Thread: autorecognition of site on a PDA

  1. #1
    Join Date
    Nov 2004
    Location
    Cambridge
    Posts
    2

    Unhappy autorecognition of site on a PDA

    Hi, can anybody point me in the right direction for some code that I can insert into my HTML headers, that if someone was to access the site using a PDA, it would recognise that it was a handheld device and automatically run the 'text only' version of the site. I hope that makes sense! cheers...

  2. #2
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,773
    Code:
    <link rel="stylesheet" type="text/css" media="handheld" href="path/to/handheld_stylesheet.css" />
    That will cause standards compliant handheld browsers to download a style sheet especially for handheld browsers. Otherwise, use PHP, ASP or JSP and detect the user_agent on the server side to determine which version of your site to send.

    The company I work for hosts newspaper web sites, and they have a special handheld compatible template, in addition to the template used by screen browsers.

  3. #3
    Join Date
    Nov 2004
    Location
    Cambridge
    Posts
    2

    Wink

    thanks for your prompt response. I'll give it a whirl and let you know the outcome..the CSS option looks by far the easiest route! cheers

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