[Seaside] Browser Information

Boris Popov boris at deepcovelabs.com
Wed Aug 16 18:59:08 UTC 2006


Heh, good one there. I wondered about that, but figured there must be a good
reason for it :)

-Boris

-- 
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5

boris at deepcovelabs.com

CONFIDENTIALITY NOTICE

This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.

Thank you.

-----Original Message-----
From: seaside-bounces at lists.squeakfoundation.org
[mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf Of Ramon Leon
Sent: Wednesday, August 16, 2006 11:52 AM
To: 'The Squeak Enterprise Aubergines Server - general discussion.'
Subject: RE: [Seaside] Browser Information

> -----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.

_______________________________________________
Seaside mailing list
Seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3370 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20060816/70a7d28d/smime.bin


More information about the Seaside mailing list