<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;">Lukas, thanks for your reply. I've copied your code into a #renderContentOn: with a "self halt" to inspect the values of width and height and they are nil everytime, so that's why I've asked to you again.<br><br>&gt;the class SURequest -- has a nice class comment<br><br>I don't know if I missing some package or something else, but you're saying this class comment in SURequest is enough for understanding how to use the class?<br>"Initiates and processes an AJAX request." <br>(sorry, as I'm not an AJAX programmer, I didn't expected to learn first Ajax to then get back to Smalltalk)<br><br>The method comment in #callback:value you're saying it's ok for understanding what does the method, and maybe as a developer concerned with the
 internals of the framework is even perfect and enough, but it's difficult to me (and I guess all first-time Scriptaculous users) to see the general context for its use. I've browsed 8 senders, most of them starts with #triggerSomething. 2 of them are documented but no senders, so I can't get a general view for it's use. Going to a sender of one of the #triggers...<br><br>renderContentOn: html<br>&nbsp;&nbsp;&nbsp; html paragraph<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; script: (html inPlaceEditor<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cancelLink: false;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; triggerInPlaceEditor: [ :value | text := value ];<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; callback: [ :r | r render: text ]);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; with: text<br><br>it's unclear (at least for me) what the script's argument does, and when the trigger is made.<br><br>Sorry for asking this, but I think with
 more and good code comments the seaside community will be benefitted a lot and no-one will complaint for helping newbies (or unexperienced AJAX programmers) to use the framework easier.<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: lunes, 26 de marzo, 2007 3:49:02<br>Asunto: Re: [Seaside] getting the browser's screen resolution?<br><br><div>&gt; Hi Lukas. Since most methods in Seaside are undocumented, and it seems<br>&gt; difficult to deduce what should I do from what you wrote, can you show me<br>&gt; how to get those current values (how to trigger the callback to set weight<br>&gt; and height)?<br><br>I asked Google for you and transformed everything to Seaside. The only<br>thing remaining for you to do is to copy the code into a rendering<br>method and
 to create the instance-variables width and height.<br><br>&gt; html script: (html request<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; callback: [ :value | width := value ] value: (SUStream on:<br>&gt; 'window.innerWidth || document.documentElement.clientWidth<br>&gt; ||<br>&gt; document.body.clientWidth || 0');<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; callback: [ :value | height := value ] value: (SUStream on:<br>&gt; 'window.innerHeight ||<br>&gt; document.documentElement.clientHeight ||<br>&gt; document.body.clientHeight || 0'))<br><br>The object returned by #request -- the class SURequest -- has a nice<br>class comment. The key method here -- #callback:value: -- is well<br>documented.<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>