Detecting Device Type

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Damon Morbius

    Detecting Device Type

    Is there a standard way to detect the device a visitor is using to
    access your site (i.e. Cell phone, handheld, web browser). Ultimately
    my goal is to detect what kind of device a visitor is using at a
    domain level(www.domain.com) then send them to the appropriate url
    (www.domain.com/wap, www.domain.com/palm). Any help is greatly
    appreciated. Thanks in advance.
  • Evertjan.

    #2
    Re: Detecting Device Type

    Damon Morbius wrote on 09 mei 2004 in comp.lang.javas cript:[color=blue]
    > s there a standard way to detect the device a visitor is using to
    > access your site (i.e. Cell phone, handheld, web browser). Ultimately
    > my goal is to detect what kind of device a visitor is using at a
    > domain level(www.domain.com) then send them to the appropriate url
    > (www.domain.com/wap, www.domain.com/palm). Any help is greatly
    > appreciated. Thanks in advance.[/color]

    Serverside, HTTP_USER_AGENT gives strings like this:

    "Mozilla/4.0 (compatible; MSIE 5.0; Symbian OS; SonyEricsson P900; 305)
    Opera 6.30 [nl]"

    You could build a sniffer code in ASP or PHP

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    Working...