Multiple asynchronous jQuery operations such as .ajax() and animations can be sequenced (chained) using the accompanying patterns which make use of jQuery Deferred techniques rather than the less extensible and non-ideal recursive call techniques.
There are three usage patterns, each implemented herein and tested using the supplied data for .ajax() transactions...
- Sequential in series using pre-defined data;
- Sequential in series, feeding each request using the response from previous request;
- Parallel request using pre-defined data, where responses are sequenced.