Sciptaculous has this:
    new Effect.Fade("id", {queue: "end"});

This ensures that if events are triggered before an animation is
completed, there are no glitches when another animation is begun on the
same element. This is especially true for accordion-type elements.
loading indicators and the like.

Is there a way to do that in jQuery?

Emulating queues by specifying long chains of callback functions can be
very cumbersome and counter-intuitive.

For instance, compare:

$("element").click(
    function() {
       $(this).animate(..., startActualAjaxLoading());
    }
)


to hypothetical

$("element").click(
    function() {
       startActualAjaxLoading();
       $(this).animate(..., {queue: "end"});
    }
)

This way, when something is loaded, I don't have to worry if that
something was loaded before any other animation has ended. I can stack
animations on an element without worry. Is this doable with jQuery?

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to