Isn't this where Effect Queues are used?
http://wiki.script.aculo.us/scriptaculous/show/EffectQueues
Walter
On Aug 6, 2007, at 10:50 AM, briandichiara wrote:
> I too am looking to do something similar to this. I think the issue
> you are running into is your innerHTML and Fade In should occur after
> the Fade Out is finished, however there is not an onComplete option
> for Effect.Fade.
>
> It would need to look something like this:
>
>
> new Effect.Fade('caption', {to:0.0, duration: .3, onComplete:
> function(){
> $('caption').innerHTML = caption;
> new Effect.Fade('caption', {to:1.0, duration: .3 });
> }
> });
>
> Unfortunately, I've had no luck with an onComplete with Effect.Appear,
> Effect.Fade, or Effect.Opacity. I wish i could contribute to
> Script.aculo.us but I wouldn't know where to begin to add this
> feature.
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---