[Seaside] Browser Information

Ramon Leon ramon.leon at allresnet.com
Wed Aug 16 18:51:49 UTC 2006

> -----Original Message-----
> From: seaside-bounces at lists.squeakfoundation.org 
> [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf 
> Of Boris Popov
> Sent: Wednesday, August 16, 2006 11:41 AM
> To: The Squeak Enterprise Aubergines Server - general discussion.
> Subject: RE: [Seaside] Browser Information
> Indeed, nowhere will you find screen resolution in there, but 
> user agent is actually used quite a bit in real world even 
> though its not a mandatory regulated field. That's not to say 
> I would recommend relying on it, but its available should you 
> need that knowledge for whatever reason 
> (http://en.wikipedia.org/wiki/User_agent).
> Back to resolution issue, you should be able to use 
> scriptaculous to place an async request on the home page that 
> sends back,
> screen.width+'@'+screen.height
> to a callback, which you can then use to set the resolution 
> on your session and refer to it from there on in. I'll see if 
> I can find a few minutes to try to provide a working example.
> Cheers!
> -Boris

Nah, there's no good reliable way to get screen res in any framework without
JavaScript, and frankly, JavaScript is not a good solution.  The real
problem was the approach, which I've changed.  I was trying to accommodate a
designer, I told him to make a better style sheet that works for all
resolutions, end of problem.

More information about the Seaside mailing list