Skip to content
/ AjaxQ Public
forked from Foliotek/AjaxQ

A tiny, simple jQuery plugin for sequential ajax requests

License

Notifications You must be signed in to change notification settings

Voyteck/AjaxQ

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AjaxQ

A tiny, simple jQuery plugin for sequential ajax requests

See http://foliotek.github.com/AjaxQ for a demonstration and documentation

Extended by Voyteck with priority option that can be added to .ajax opts to prioritize call - e.g.:

$.ajaxq('someName', {
	... // .ajax() parameters
	priority: true,
	... // other .ajax() parameters
}

Usage

$.ajaxq follows the $.ajax options and return value, with an extra first parameter (the queue name).

  $.ajaxq(name, opts);

you can add additional boolean parameter priority to opts that will make the call to be executed prioritized (will be added to the beginning of queue)

$.getq follows the $.get options and return value, with an extra first parameter (the queue name).

  $.getq(name, opts);

you can add additional boolean parameter priority to opts that will make the call to be executed prioritized (will be added to the beginning of queue)

$.postq follows the $.post options and return value, with an extra first parameter (the queue name).

  $.postq(name, opts);

you can add additional boolean parameter priority to opts that will make the call to be executed prioritized (will be added to the beginning of queue)

$.ajaxq.isRunning returns a boolean representing if any requests are currently running. qname is an optional parameter.

  $.ajaxq.isRunning(qname);

$.ajaxq.getActiveRequest returns the currently processing jqXHR for the given queue. qname is required.

  $.ajaxq.getActiveRequest(qname);

$.ajaxq.clear removes any unprocessed requests from the queue. qname is an optional parameter.

   $.ajaxq.clear(qname);

$.ajaxq.abort aborts the current request, and removes any unprocessed reqeusts from the queue. qname is required.

  $.ajaxq.abort(qname);

Demo

http://foliotek.github.com/AjaxQ#demo

About

A tiny, simple jQuery plugin for sequential ajax requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%