> I need to do a quick down and dirty retrofit of a site. Adding a > Stylesheet media="handheld" will be too time-consuming.
Well, frankly, not enough devices support this to use it, if you don't know the specific devices that will visit your site (and the capabilities of those devices) ahead of time. > I would rather do this > > server-side: if HTTP_USER_AGENT = handheld redirect to another page. Unfortunately, it's not that simple. There are a vast number of mobile device user agents. http://www.user-agents.org/ > Looking around - and asking on a CSS list doesn't get me very > far. I can't be the only one that wants to do this? > > So far I have these two sites: > > http://www.andymoore.info/php-to-detect-mobile-phones/ > http://www.webmasterworld.com/forum21/9507.htm > > I hope I don't have to have a huge if-else (or switch-case) Well, to a certain extent, you will. You might be able to simplify this a bit, by looking at other HTTP request headers, such as Accept, to filter out WAP clients. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293973 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4