Rails RJS syntax for parallel visual effects

I have tried to find an example of how to script parallel visual effects
in Rails using RJS, but have not been able to find any relevant code
examples

I have looked at available references and tried expressions as
page.parallel_effects do
page.visual_effect(‘highlight’, ‘move_id’)
page.visual_effect(‘fade’, ‘move_id’)
end

and

page.visual_effect(‘Parallel’,
[visual_effect(“highlight” ,“move_id”),
visual_effect(“move”, “move_id”,{:x => 100, :y => 150}),])

and some other variations of these expressions.

but they are all incorrect.

Can anyone give me a Rails RJS code example of how to script parallel
visual effects,and I also need an example of how to script serial
effects

Hans M. 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') } } ); 

“”"

?


Phlip
Redirecting... ← NOT a blog!!!

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

I haven’t confirmed this, but I would try something like…

page.visual_effect(‘highlight’, ‘move_id’, :queue => ‘front’)
page.visual_effect(‘fade’, ‘move_id’, :queue => ‘front’)

for an unamed-queue…

Follow the source for visual_effect to see how/where it uses that
options
hash…

Philip H. wrote:

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

I haven’t confirmed this, but I would try something like…

page.visual_effect(‘highlight’, ‘move_id’, :queue => ‘front’)
page.visual_effect(‘fade’, ‘move_id’, :queue => ‘front’)

for an unamed-queue…

Follow the source for visual_effect to see how/where it uses that
options
hash…

This worked after some rewording to handle the effects I was interested
in. I used
page.visual_effect(‘Move’,‘move_id’,{:mode => “‘relative’”,:x => 100, :y
=> 150, :queue => ‘front’})
page.visual_effect(‘Move’,‘move_id2’,{:mode => “‘relative’”,:x => 100,
:y => 150, :queue => ‘front’})
fro the serial effect and just changed front to parallel to get the
parallel effect
Thanks for our help, but… I still would like to see some example
on how to use page.parallel_effects as the documentation tels me that
such a method exists

A slightly tangential suggestion: check out

http://mir.aculo.us/demos/script-aculo-us-1-7-beta-demos

Jimmy Kittiyachavalit wrote:

A slightly tangential suggestion: check out

http://mir.aculo.us/demos/script-aculo-us-1-7-beta-demos

Thanks for your answer,
maybe a possible solution,did not tried it ous as I found the one
proposed by Philip H. more simple.
See my reply to him

Phlip wrote:

Hans M. 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') } } ); 

“”"

?


Phlip
Redirecting... ← NOT a blog!!!

Thansk for your answer

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

“”“Hans M. ÐÉÓÁÌ(Á):
“””

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


Posted via http://www.ruby-forum.com/.

read about Effect.queue
http://blog.railsdevelopment.com/pages/effect/queue/

Hans M. 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…


Phlip
Redirecting... ← NOT a blog!!!

edbond wrote:

“”“Hans M. �����(�):
“””

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


Posted via http://www.ruby-forum.com/.

read about Effect.queue
http://blog.railsdevelopment.com/pages/effect/queue/

thanks,
but have tried that. It is something wrong with
http://blog.railsdevelopment.com/pages/effect/queue/

Your are redirected to some unknown site