Re: Markup as a function of User-Agent

2007-06-21 Thread [EMAIL PROTECTED]
Yup... first, don't do it based on user agent. Guaranteed you won't think of one, or the specs will change, or something will go belly up on you. Do it on capability. If it's a small screen, do x, otherwise, do y, whatever the UA is. What really matters to you is the size of the thing, right?

Markup as a function of User-Agent

2007-06-20 Thread EagerToUnderstand
I would like to change the information/size of the returned HTML page depending on the User-Agent accessing the content. (Typically rendering a smaller page for a PDA than for a PC browser.) I know how to get hold of the User-Agent. It feels to me like this must be a common requirement, yet I