I''d like to wait for an effect queue to be empty before proceeding with code execution. How can I do this? In this case, I''d like to fade out a div, modify it and then fade it back in, but I don''t want the modification to start until I know it''s completely faded out. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I should clarify... this is with scriptaculous. On Sep 29, 10:45 am, TTop <ttopwe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''d like to wait for an effect queue to be empty before proceeding > with code execution. How can I do this? > > In this case, I''d like to fade out a div, modify it and then fade it > back in, but I don''t want the modification to start until I know it''s > completely faded out.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
You can use Effect.Event for this: new Effect.Event({queue:''end'',afterFinish:function(){ // your code }); Am 29.09.2007 um 19:47 schrieb TTop:> > I should clarify... this is with scriptaculous. > > On Sep 29, 10:45 am, TTop <ttopwe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> I''d like to wait for an effect queue to be empty before proceeding >> with code execution. How can I do this? >> >> In this case, I''d like to fade out a div, modify it and then fade it >> back in, but I don''t want the modification to start until I know it''s >> completely faded out. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---