On Jan 6, 2011, at 8:10 PM, Mike Kear wrote: > I have to convert a client site to enable phone users to use the site and I > was wondering what is the best method to detect the mobile user agent and > switch the css sheet? > > As far as I have seen, there are a few ways to do this - which is best? (or > maybe the way to put it is 'least bad') > [A] a link at the top of the normal page, linking to a mobile version of the > page. (yuk) > [B] javascript detection (but there are thousands of mobile devices to > detect. YUK ) > [C] Use CSS @media handheld (but many mobile phones don't support the > handheld media type ) > [D] server side detection using CGI.User_Agent (but there are so many user > agents to detect) > [E] screen resolution detection (but is that reliable?) >
I forgot to include this, if you are going to do a mobile version of site instead of using Media Queries for mobile device, this script is pretty handy, and it has a ColdFusion version. No Yuk :-) I have found it reliable. http://detectmobilebrowser.com/ tee ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: memberh...@webstandardsgroup.org *******************************************************************