A tiny, simple jQuery plugin for sequential ajax requests
See http://foliotek.github.com/AjaxQ for a demonstration and documentation
$.ajaxqfollows the $.ajax options and return value, with an extra first parameter (the queue name).
$.ajaxq(name, opts);
$.getqfollows the $.get options and return value, with an extra first parameter (the queue name).
$.getq(name, opts);
$.postqfollows the $.post options and return value, with an extra first parameter (the queue name).
$.postq(name, opts);
$.ajaxq.isRunningreturns a boolean representing if any requests are currently running.
qnameis an optional parameter.
$.ajaxq.isRunning(qname);
$.ajaxq.getActiveRequestreturns the currently processing jqXHR for the given queue.
qnameis required.
$.ajaxq.getActiveRequest(qname);
$.ajaxq.clearremoves any unprocessed requests from the queue.
qnameis an optional parameter.
$.ajaxq.clear(qname);
$.ajaxq.abortaborts the current request, and removes any unprocessed reqeusts from the queue.
qnameis required.
$.ajaxq.abort(qname);
http://foliotek.github.com/AjaxQ#demo