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.


Reply via email to