I would like to use fx and functions
I have a animation, and i would like to, at the end of the queue, do an ajax call.
I can't seem to make it work...
I have absolutely no idea how to procede...
that would a very very rough example, but
$('#dvHeader').queue(function() {
$('#dvLeftContent').slideDown(2000);
$('#dvRightContent').animate({ backgroundColor: '#c71717' }, 2500)
callAjax();
}
This code calls the callAjax function way before the last effect starts, in fact, almost as the first one is called.
The real case is a little more complex, i cannot use a callback of the animate effect, per example. I would like to know when the queue ends the last effect, or something like it.
How could I make that call to be triggered at the end of the last animation?