[Seaside] Read the browser size
Joachim Tuchel
jtuchel at objektfabrik.de
Tue Oct 30 13:06:17 UTC 2012
Hi,
judging from the snippet you provide, the AJAX call is never performed
because there is no event it is registered with, like onClick or such.
AFAIK, there is no use in simply adding an AJAX in a plain
renderContentOn: method.
So you should try first to add a button or link and bind your Ajax to
its onClick: just to see if that is any better. Then you need to find
out if you can bind the Ajax call to an onLoad by using updateRoot: or
similar.
HTH
Joachim
Am 30.10.12 13:42, schrieb dtrussardi at tiscali.it:
> Hi,
>
> i need to render some components based on the browser size.
>
> I work with JQuery and i do a test with this code in the renderContentOn:
>
>
> html jQuery ajax
> callback: [ :width | " do something with width " ]
> value: (JSStream on: 'window.innerWidth').
>
>
>
> But the callback block is never call.
>
>
> Any suggestions ?
>
> Thank,
> Dario
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
--
--
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel mailto:jtuchel at objektfabrik.de
Fliederweg 1 http://www.objektfabrik.de
D-71640 Ludwigsburg http://joachimtuchel.wordpress.com
Telefon: +49 7141 56 10 86 0 Fax: +49 7141 56 10 86 1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5586 bytes
Desc: S/MIME Kryptografische Unterschrift
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20121030/3bbbceeb/smime.bin
More information about the seaside
mailing list