471,605 Members | 1,406 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

Check for mobile device?

Hello,

Any best practice in checking mobile device and re-direct them into
mobile page (e.g. wap) ?

E.g. User agent, screen size etc.?

anything else?

Sep 4 '07 #1
4 6999
howa wrote:
Any best practice in checking mobile device and re-direct them into
mobile page (e.g. wap) ?
I'm not a specialist, but the HTTP Accept: header seems to be the best
place to see what formats the user-agent likes.
It's even pounded with a quality ratio.

Apache's algorithm is a good example of clever content negotiation:

http://httpd.apache.org/docs/2.2/con...tml.en#methods
E.g. User agent, screen size etc.?
No.

--
You can contact me at <ta*****************@yahoDELETETHATo.fr>
Sep 4 '07 #2
On Tue, 04 Sep 2007 19:16:15 +0200, howa <ho******@gmail.comwrote:
Hello,

Any best practice in checking mobile device and re-direct them into
mobile page (e.g. wap) ?

E.g. User agent, screen size etc.?

anything else?
Keeping the same data/html, possibly with another stylesheet (check the
media attribute). Wasn't WAP dead BTW? The only people I know who can
browse the internet on their phone just have a 'regular browser'.
--
Rik Wasmus
Sep 4 '07 #3
On 9/4/2007 10:16 AM, howa wrote:
Hello,

Any best practice in checking mobile device and re-direct them into
mobile page (e.g. wap) ?

E.g. User agent, screen size etc.?

anything else?
If you plan to "sniff" for user agent, be very careful that you are
checking it correctly.

There are far too many Web sites that do sniffing to distinguish IE from
Firefox from Opera from Safari from etc. Often, there is no really good
reason for this other than the fact that some non-standard IE capability
has been used that won't work with other browsers.

In the meantime, sniffing for Firefox should actually be for Gecko
(Mozilla's Web rendering engine within Firefox). When Web sites sniff
specifically for Firefox and not Gecko, those sites often do not display
correctly for SeaMonkey, Camino, and other Mozilla products, all of
which are also using Gecko as does Netscape and more than 20 other
browsers. If Firefox can properly display a Web page, so should any
other Gecko brower PROVIDING there is poorly implemented sniffing. See
<http://geckoisgecko.org/for a discussion on Gecko sniffing.

While my rant does not seem to apply to mobile devices, the Minimo
browser for mobile devices uses Gecko. Thus, my original warning: Be
very careful!
--

David E. Ross
<http://www.rossde.com/>.

Anyone who thinks government owns a monopoly on inefficient, obstructive
bureaucracy has obviously never worked for a large corporation. © 1997
Sep 5 '07 #4

Rik Wasmus

Keeping the same data/html, possibly with another stylesheet (check the
media attribute). Wasn't WAP dead BTW?
XHTML Mobile Profile is nice and easy to convert from current XHTML

Sep 5 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by tobesurveyor via AccessMonster.com | last post: by
1 post views Thread by Jeff | last post: by
3 posts views Thread by =?Utf-8?B?QWxleCBNYWdoZW4=?= | last post: by
2 posts views Thread by Paulson | last post: by
3 posts views Thread by John | last post: by
1 post views Thread by =?Utf-8?B?V29vZGdub21l?= | last post: by
reply views Thread by tthkbw | last post: by
7 posts views Thread by cj2 | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.