[jQuery] timing of chained effects
I have this function:
function getlastact(event) {
$("#left_info")
.fadeOut()
.load("last_act.php",{'activity':$(event.target).attr('class')})
.fadeIn();
};
What I see happening is the fadeOut, then the fadeIn (with the old
data), and then the new data replaces the old. Obviously not what I
was intending.
Is there a way to make the fadeIn wait until the new data has been
installed?
--
"Every great advance in natural knowledge has involved the
absolute rejection of authority." -- Thomas Henry Huxley
Rick Pasotto rick@niof.net http://www.niof.net