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