Try using Element.update (from prototype.js) and include the "after" part in a <script> block in the code that you insert through update. After the replacement happens, the code will run. I don't have any suggestions about how to get the update to run after the initial effect has happened, but you might want to just use a setTimeout for that.
Walter On Aug 6, 2007, at 11:32 AM, briandichiara wrote: > > That's what I was just looking into. Realized that after I posted, but > as you can see from my latest post (http://groups.google.com/group/ > rubyonrails-spinoffs/browse_thread/thread/a26f1fcbcc56f8ae?hl=en), I > cannot figure out how to "insert" the innerHTML part between the 2 > fades... > > On Aug 6, 10:17 am, Walter Lee Davis <[EMAIL PROTECTED]> wrote: >> 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 -~----------~----~----~----~------~----~------~--~---
