SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Sep 2003
    Location
    melbourne
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sniffer for Pocket Pc

    I would love to find out how to right a sniffer for a Pocket Pc.

    somthign like

    if pcket pc then
    blar blar blar

    else
    blar blar blar

    (excuse the lack of sintax)

  2. #2
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Execuse me, but... huh?
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  3. #3
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by M. Johansson
    Execuse me, but... huh?
    He wants to know if there's a specific string in the user agent header that he can search for to identify PocketPC browsers, so he can serve alternate content to them.

  4. #4
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    That can't be done with HTML - he'll need Javascript or a serverside language, such as PHP or ASP.
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  5. #5
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    http://www.pocketpcmag.com/Mar02/small_web.asp

    The user agent HTTP header is the header that contains a string of information on the browser that is requesting the page. For a Pocket PC 2002 version of pIE the header is "Mozilla/2.0 (compatible; MSIE 3.02; Windows CE; 240x320; PPC)". IE 5.5 on a Windows 2000 desktop returns the string "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)."
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  6. #6
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by M. Johansson
    That can't be done with HTML - he'll need Javascript or a serverside language, such as PHP or ASP.
    Yeah, and most likely server-side, as I'm not sure how good Javascript support is on limited-memory devices.

  7. #7
    SitePoint Member
    Join Date
    Sep 2003
    Location
    melbourne
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow thanks guys - I realise how cryptic my post was now - it was a last minute thing before going home last night

    Cheers


Bookmarks

Posting Permissions

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