Effects occur asynchronously, so based on your code, what you're describing makes sense.
Have a look at the afterFinish callback. http://wiki.script.aculo.us/scriptaculous/show/CoreEffects TAG On Aug 10, 2007, at 12:14 PM, Jean-Christophe Roux wrote: > Hello, > There is a div > <div id='about_id' style='display: none' class='abc'>the ABCc</div>; > and a button that is linked to a > var myAjax = new Ajax.Request(url, > { method: 'post', > parameters: pars, > onSuccess: function(transport) > { > new Effect.Fade('about_id'); > $('about_id').update > (transport.responseText); > new Effect.Appear('about_id'); > } > } > ); > I was expected to see, upon clicking the button, the ABCs to fade > away, then the substitution to be done while the screen is blank > and the new text toappear progressively. > Instead, the ABC is brutaly replaced by the new text, which > disappears leaving me with a blank page; not exactly what was > expecting! > Firefox and IE have the same behavior; what am I doing wrong? > Thank you > > Be a better Globetrotter. Get better travel answers from someone > who knows. > Yahoo! Answers - Check it 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 [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 -~----------~----~----~----~------~----~------~--~---
