[Seaside] parallel example

Jens Pall jens at axonspace.com
Wed Jan 24 21:40:15 UTC 2007

Lukas Renggli wrote:
>> Does anyone have an example on how to use the Scriptaculous parallel:
>> message?
> Try something like:
> html anchor
>   id: 'anchor';
>   onClick: (html effect parallel: {
>      html effect id: 'anchor'; highlight.
>      html effect id: 'anchor'; move: 100 @ 200.
>      html effect id: 'anchor'; scale: 4 };
>   with: 'Parallelize Me'
> The 3 effects will be executed in parallel. I don't exactly know why
> script.aculo.us provides the parallel effect, after all simply
> concatenating the effects would execute them in parallel as well as
> they are processed asynchronously.
> Cheers,
> Lukas

Thanks Lukas.

Would you concatenate the effects like this?:

html anchor
   onClick: (html effect
     id: 'theid';
   onClick: (html effect
     id: 'theid';
   with: 'appear and highlight'.

At least this works too.


More information about the Seaside mailing list