[Seaside] [Scriptaculous] - Combining #onClick: on a tag

Lukas Renggli renggli at gmail.com
Fri Oct 13 14:12:44 UTC 2006


> actually, I was doing:
> onClick: (html update id: 'id1'; callback: [ ... ]);
> onClick: (html update id: 'id2'; callback: [ ... ]);
>
> I like better to concatenate the SUStreams...

Both techniques should result in exactly the same code.

> After some more experiments, I have another solution... with
> #asynchronous:   (SUAjax)
>
>         ...onClick:
>              (html updater
>                   id: treeDiv;
>                   asynchronous: false;   "so it's synchronous (?), and
> then the callback is evaluated in first place. Am I right ?"
>                   evalScripts: true;
>                    .....

Like this the updater blocks until the request finished.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch


More information about the Seaside mailing list