Re: browser detection middleware

2007-05-22 Thread Simon Willison
On May 22, 9:38 am, omat <[EMAIL PROTECTED]> wrote: > Is it a good idea to use a middleware class to detect the browser > client looking at the HTTP_USER_AGENT so as to serve presentation > logic accordingly, for mobile devices or older browsers, etc...? I would advise against this because it won

Re: browser detection middleware

2007-05-22 Thread omat
I agree your comments. My primary concern is to have a reasonably similar presentation in most popular browsers. I would prefer a one- css-fits-all solution, but... In most cases this just doesn't seem possible. The source of wikipedia discouraged me. Even in their relatively simple layout, they

Re: browser detection middleware

2007-05-22 Thread Atilla
On 22/05/07, omat <[EMAIL PROTECTED]> wrote: > > Hi all, > > Is it a good idea to use a middleware class to detect the browser > client looking at the HTTP_USER_AGENT so as to serve presentation > logic accordingly, for mobile devices or older browsers, etc...? > > I know this is mostly done by

browser detection middleware

2007-05-22 Thread omat
Hi all, Is it a good idea to use a middleware class to detect the browser client looking at the HTTP_USER_AGENT so as to serve presentation logic accordingly, for mobile devices or older browsers, etc...? I know this is mostly done by