the effects all have a property called onFinish : Just queue things that way if you dont want to get complicated
Alex Mcauley http://www.thevacancymarket.com ----- Original Message ----- From: <[email protected]> To: "Prototype & script.aculo.us" <[email protected]> Sent: Saturday, November 28, 2009 2:25 PM Subject: [Proto-Scripty] Queueing actions > Hello, > > I got a question that I don't seem to be able to find a solution for : > ( > > Please consider the following code: > > new Ajax.Request(url, { > onSuccess: function(response) { > Effect.BlindUp('promocontainer', { duration: 1, queue: 'front' }); > $('promocontainer').update(response.responseText); > Effect.BlindDown('promocontainer', { duration: 1 , queue: 'end'}); > } > }); > > This works like a charm, and as you can see I already managed to make > sure the BlindUp doesn't interfere with the BlindDown by queueing > these effects. > > The idea behind the above however is to have the div BlindUp, update > the contents WITHOUT SOMEONE NOTICING, and then calling the BlindDown, > so you have a nice effect where the old contents goes away, and the > new one nicely blinds in. > > Unfortunately, as it sems, the update on the div already happens > while the blindup is still running... > Is there a way to manage this as well? and queue the update as well? > > I already tried moving the blindup BEFORE creating the Ajax Request, > but it didn't work - the ajax request was faster than the blindup, and > in the end I still had updating content prior to the blindup effect to > finish... > > If someone on this list has a nice idea, I'd very much appreciate it. > > > Thanks a lot! > David. > > -- > > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.
