[Seaside] SU updater or SU element - how to affect multiple elements?

Keith Hodges keith_hodges at yahoo.co.uk
Tue Dec 11 03:21:03 UTC 2007


Lukas Renggli wrote:
>> I need to affect multiple elements (via html #update, or #element #hide,
>> #show). I know their IDs. How should I do this?
>>     
>
> html evaluator callback: [ :s |
>    s element id: 'first'; hide.
>    s element id: 'second'; show ]
>
> Lukas
>
>   
onClick: (

html evaluator callback: [ :script |
   script element id: 'first'; render: [ :r | self updateFirstOn: r ].
   script element id: 'second'; render: [ :r | self updateSecondOn: r ].
]

)

Keith






More information about the seaside mailing list