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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 > effectspage << """ new Element.cuban_slide(''slide_me'', { afterFinish:function() { new Element.mashed_potato(''mash_me'') } } ); """ ? -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> 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 > effectsI 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... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jimmy Kittiyachavalit
2006-Dec-01 22:38 UTC
Re: Rails RJS syntax for parallel visual effects
A slightly tangential suggestion: check out http://mir.aculo.us/demos/script-aculo-us-1-7-beta-demos On 12/1/06, Philip Hallstrom <rails-SUcgGwS4C16SUMMaM/qcSw@public.gmane.org> wrote:> > > > 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 > > 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... > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Philip Hallstrom 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Phlip wrote:> 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'') } } ); > """ > > ? > > -- > Phlip > http://www.greencheese.us/ZeekLand <-- NOT a blog!!!Thansk for your answer However, your proposal did not work, but see my answer to Philip Hallstrom for a possible solution -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jimmy Kittiyachavalit wrote:> A slightly tangential suggestion: check out > > http://mir.aculo.us/demos/script-aculo-us-1-7-beta-demosThanks for your answer, maybe a possible solution,did not tried it ous as I found the one proposed by Philip Hallstrom more simple. See my reply to him -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 solutionYou did try "Effect" instead of "Element", right? I have a ped-in-speech-iment... -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
"""Hans Marmolin писал(а): """> 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 > > -- > Posted via http://www.ruby-forum.com/.read about Effect.queue http://blog.railsdevelopment.com/pages/effect/queue/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
edbond wrote:> """Hans Marmolin �����(�): > """ >> 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---