Glen Stampoultzis
2006-Feb-18 12:23 UTC
[Rails] Effect queues with RJS templates and scriptaculous
Hi. I was wondering if it''s possible to combine effects for individual elements with RJS templates. I notice that scriptaculous has support for a concept called effect queues (http://www.railsdevelopment.com/2006/01/15/effectqueue/). Is there anyway to use these queues from rjs?
Cody Fauser
2006-Feb-18 17:01 UTC
[Rails] Effect queues with RJS templates and scriptaculous
Glen, You can use the effect queues from RJS by passing the :queue option to visual_effect. A simple example: page.visual_effect :highlight, ''first'', :queue => ''end'' page.visual_effect :highlight, ''second'', :queue => ''end'' page.visual_effect :highlight, ''third'', :queue => ''front'' It doesn''t look like scoped queues will work yet, though. On 2/18/06, Glen Stampoultzis <gstamp@gmail.com> wrote:> Hi. I was wondering if it''s possible to combine effects for > individual elements with RJS templates. I notice that scriptaculous > has support for a concept called effect queues > (http://www.railsdevelopment.com/2006/01/15/effectqueue/). Is there > anyway to use these queues from rjs? > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Cody Fauser http://www.codyfauser.com
Abdur-Rahman Advany
2006-Feb-18 17:15 UTC
[Rails] Effect queues with RJS templates and scriptaculous
Hi, Well I have made a patch for supporting visual_effect but it isn''t applied yet. http://dev.rubyonrails.org/ticket/3530 Cody Fauser wrote:> Glen, > > You can use the effect queues from RJS by passing the :queue option to > visual_effect. > > A simple example: > > page.visual_effect :highlight, ''first'', :queue => ''end'' > page.visual_effect :highlight, ''second'', :queue => ''end'' > page.visual_effect :highlight, ''third'', :queue => ''front'' > > It doesn''t look like scoped queues will work yet, though. > > On 2/18/06, Glen Stampoultzis <gstamp@gmail.com> wrote: > >> Hi. I was wondering if it''s possible to combine effects for >> individual elements with RJS templates. I notice that scriptaculous >> has support for a concept called effect queues >> (http://www.railsdevelopment.com/2006/01/15/effectqueue/). Is there >> anyway to use these queues from rjs? >> _______________________________________________ >> Rails mailing list >> Rails@lists.rubyonrails.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > > > -- > Cody Fauser > http://www.codyfauser.com > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >