[Seaside] Seaside + Scriptaculous: updating checkbox value

Lukas Renggli renggli at gmail.com
Mon Jun 11 13:29:26 UTC 2007


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


More information about the Seaside mailing list