<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi Lukas. Since most methods in Seaside are undocumented, and it seems difficult to deduce what should I do from what you wrote, can you show me how to get those current values (how to trigger the callback to set weight and height)?<br>thanks!<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Mensaje original ----<br>De: Lukas Renggli &lt;renggli@gmail.com&gt;<br>Para: Seaside - general discussion &lt;seaside@lists.squeakfoundation.org&gt;<br>Enviado: domingo, 25 de marzo, 2007 5:26:22<br>Asunto: Re: [Seaside] getting the browser's screen resolution?<br><br><div>&gt; I know there's a discussion some time ago, but I haven't found a clear<br>&gt; solution to get the browser's screen resolution.
 Is there a way to do this<br>&gt; with Seaside?<br><br>There is no difference to PHP, JSP, RoR, ... whatever. You can<br>basically take any solution from there and take it over to Seaside.<br><br>If you use Scriptaculous something like that might work for you:<br><br>html script: (html request<br>&nbsp;&nbsp;&nbsp;&nbsp;callback: [ :value | width := value ] value: (SUStream on:<br>'window.innerWidth || document.documentElement.clientWidth ||<br>document.body.clientWidth || 0');<br>&nbsp;&nbsp;&nbsp;&nbsp;callback: [ :value | height := value ] value: (SUStream on:<br>'window.innerHeight || document.documentElement.clientHeight ||<br>document.body.clientHeight || 0'))<br><br>This generates a new request posting the current values into your<br>web-applications.&nbsp;&nbsp;Maybe nicer would be to override #initialRequest:<br>and do a redirect posting the size, but that wouldn't be that simple<br>anymore.<br><br>Lukas<br><br>-- <br>Lukas Renggli<br><a target="_blank"
 href="http://www.lukas-renggli.ch">http://www.lukas-renggli.ch</a><br>_______________________________________________<br>Seaside mailing list<br>Seaside@lists.squeakfoundation.org<br><a target="_blank" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br></div></div><br></div></div><br>__________________________________________________<br>Correo Yahoo!<br>Espacio para todos tus mensajes, antivirus y antispam ¡gratis! <br>Regístrate ya - http://correo.espanol.yahoo.com/ </body></html>