AJAX Loop and Wait

AJAX Loop and Wait

I have a script/function where I want to call a page/script via ajax. Once that's completed, call another and once that's completed a 3rd and so on.

How can I do something like this?