469,623 Members | 1,439 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

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.
Jul 23 '05 #1
1 2634
Damon Morbius wrote on 09 mei 2004 in comp.lang.javascript:
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.


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)
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Matt Hawley | last post: by
9 posts views Thread by Stu | last post: by
reply views Thread by June Li | last post: by
1 post views Thread by JB | last post: by
1 post views Thread by vishal | last post: by
6 posts views Thread by Andre Majorel | last post: by
reply views Thread by devrayhaan | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.