|
Posted by Michael Fesser on 10/25/07 15:12
..oO(Sanders Kaufman)
>"Michael Fesser" <netizen@gmx.de> wrote in message
>news:0aush3pkvmeh0r8pbai51si1b4vdjmruej@4ax.com...
>>
>> My "Why" was meant as a response to "capture ... the users screen res".
>
>Wow, you gotta know this one.
>In one old app, I checked that setting because I knew some OLD people who
>use 640x480 would be on the site.
What does the screen res tell you about the size of the browser window
and its viewport? Exactly nothing.
>In the current one, I'm checking it to see if they're coming at me with a
>PDA or Cell Phone.
>(I totally gave up on just using the server user agent.)
I don't do any sniffing at all. I write flexible HTML and if I want to
improve the appearance on PDAs (until now it wasn't really necessary),
I could add another stylesheet with media type 'handheld'. For older PDA
browsers I could also add a simple stylesheet switcher just in case they
don't support that media type.
There's almost always a better way than browser or screen res sniffing.
Micha
Navigation:
[Reply to this message]
|