Try the afterFinish handler.
ex:
new Effect.Fade('progressDiv',{duration:2.5, afterFinish:function(){ //do
something } });
Thanks,
Irfan
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Daniel
Elmore
Sent: Wednesday, August 09, 2006 3:52 PM
To: [email protected]
Subject: [Rails-spinoffs] Timing things with Effects
If an effect is set to take 2 seconds to run and I want to execute a
function after it's finished, should I just use a setTimeout call? Or is
there a better way?
I know about the Effects queue, but it appears that only works for calling
other Effects.
Thank you!
Daniel
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs