Rails RJS syntax for parallel visual effects

Hans Marmolin wrote:

Can anyone give me a Rails RJS code example of how to script parallel
visual effects,

        page << """ new Element.cuban_slide('slide_me'); new Element.mashed_potato('mash_me'); """

?

and I also need an example of how to script serial
effects

        page << """ new Element.cuban_slide('slide_me', {
                           afterFinish:function() {
                           new Element.mashed_potato('mash_me') } } ); """

?

Hans Marmolin wrote:

        page << """ new Element.cuban_slide('slide_me');
                           new Element.mashed_potato('mash_me'); """

However, your proposal did not work, but see my answer to Philip Hallstrom for a possible solution

You did try "Effect" instead of "Element", right?

I have a ped-in-speech-iment...