I am writing an application that will display a series of images. When a link is clicked the images will fade away, and new images will fade in. I am starting by trying to simply fade the images out then back in through a function: function ChangeImage() { Effect.BlindDown(''MyElement'',{duration:0.5}); Effect.BlindUp(''MyElement'',{duration:0.5}); } This results in the images simply being removed from the screen. I am guessing that this is not working because both Effects are trying to be executed at about the same time. Is there any way to do this? I was going to use Effect.Move to do the same thing and got it working nicely in Firefox, but unfortunately that doesn''t work in IE. Thanks - george --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hey George, Look, this has been answered a gazillion times. I''ll reply below, but in the future please be nice enough to search the list''s archives, ok? Effects are indeed run in parallel, unsynchronized fashion by default. To chain them, the easiest way is to rely on an effect queue. You can use the default, global queue when there''s no conflicting use of it: Effect.BlindDown(''MyElement'', { duration: 0.5 }); Effect.BlindUp(''MyElement'', { duration: 0.5, queue: ''end'' }); The second call implicitly relies on the ''global'' queue, with position ''end''. That''ll chain your effects up properly. Look at Scripty''s wiki for details, or just grab my book when it hits Beta1 (around July 1): effect queues are covered in detail ;-) -- Christophe Porteneuve a.k.a. TDD "[They] did not know it was impossible, so they did it." --Mark Twain Email: tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Sorry, I did look in the archives but didn''t find the answer, probably because I didn''t know what keywords to use. On Jun 22, 4:31 pm, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> Hey George, > > Look, this has been answered a gazillion times. I''ll reply below, but > in the future please be nice enough to search the list''s archives, ok? > > Effects are indeed run in parallel, unsynchronized fashion by default. > To chain them, the easiest way is to rely on an effect queue. You can > use the default, global queue when there''s no conflicting use of it: > > Effect.BlindDown(''MyElement'', { duration: 0.5 }); > Effect.BlindUp(''MyElement'', { duration: 0.5, queue: ''end'' }); > > The second call implicitly relies on the ''global'' queue, with position > ''end''. That''ll chain your effects up properly. Look at Scripty''s wiki > for details, or just grab my book when it hits Beta1 (around July 1): > effect queues are covered in detail ;-) > > -- > Christophe Porteneuve a.k.a. TDD > "[They] did not know it was impossible, so they did it." --Mark Twain > Email: t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---