[Seaside] Re: SU updater or SU element - how to affectmultiple elements?

itsme213 itsme213 at hotmail.com
Tue Dec 11 07:46:57 UTC 2007


"Keith Hodges" <keith_hodges at yahoo.co.uk> wrote
> onClick: (
>
> html evaluator callback: [ :script |
>   script element id: 'first'; render: [ :r | self updateFirstOn: r ].
>   script element id: 'second'; render: [ :r | self updateSecondOn: r ].
> ]

Thanks, that clarifies it further. Would it also be OK to use multiple calls 
to #onClick,
 html anchor
    onClick: ( self hideShowOn: html );
    onClick: (html updater
        id: opId;
            callback: [:r |
                 self toggleHideShowStateOnServer.
                 self renderBarOn: r])

or is that something to avoid? The generated Javascript gets appended 
correctly, but perhaps there would be risky asynchronous / race between the 
requests.

- Sophie 





More information about the seaside mailing list