[Seaside] parallel example

Lukas Renggli renggli at gmail.com
Wed Jan 24 22:14:12 UTC 2007


> Would you concatenate the effects like this?:
>
> html anchor
>    onClick: (html effect
>      id: 'theid';
>      toggleAppear);
>    onClick: (html effect
>      id: 'theid';
>      highlight);
>    with: 'appear and highlight'.

Yes exactly. Another possibility would be to write it using the #, operator:

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

Both versions should produce exactly the same JavaScript code.

Cheers,
Lukas

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


More information about the Seaside mailing list