[jQuery] How to block a function while another finishes?

[jQuery] How to block a function while another finishes?

I'm having a hard time getting functions to happen in
the order I want them to. Specifically, I need the
html of a div to be rewritten BEFORE it slides back
down. I'm seeing the html change while the div is
sliding up, which isn't what I'm looking for. Is there
any way to force functions to finish before moving on?
Synchronous-style...
-a div on the page is assigned to divTarget, and I'm
positive it's finding the correct one)
-stuff holds the results of an ajax query: some basic
HTML.
$(divTarget).slideUp("slow");
$(divTarget).children("div.middle").html(stuff);
$(divTarget).slideDown("slow");
*note: I know I could chain these, but am trying to
get it to work first before fiddling with that ;)
thanks,
-kim

____________________________________________________________________________________
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/