[Seaside] Seaside + Scriptaculous: updating checkbox value

Leandro Pérez lperez at lifia.info.unlp.edu.ar
Mon Jun 11 15:32:13 UTC 2007


Thanks a lot Lukas, that worked just fine!
Would you recomend me some documentation sources, tutorials, papers, books
etc.. on scriptaculous+seaside?


Lukas Renggli wrote:
> 
> You need to put a div around the checkbox, give it an id and update
> that div. This will be simpler in the upcoming version of
> Scriptaculous, for now something like that should work:
> 
> renderContentOn: html
>    html form: [
>       html div id: 'checkbox'; with: [
>          self renderCheckboxOn: html ] ]
> 
> renderCheckboxOn: html
>    html checkbox
>        value: ...;
>        onClick: (html updater
>          id: 'checkbox';
>          callback: [ :r | self renderCheckboxOn: r ])
> 
> Lukas
> 
> -- 
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 
> 

-- 
View this message in context: http://www.nabble.com/Seaside-%2B-Scriptaculous%3A-updating-checkbox-value-tf3901404.html#a11062300
Sent from the Squeak - Seaside mailing list archive at Nabble.com.



More information about the Seaside mailing list