Skip to content

jQuery plugin to chain async functions to execute sequencially, current function's return value or returned defered object resolve parameters will be transfer to next function as parameters.

License

lifecube/jQuery.chain.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery.chain.js

jQuery plugin to chain async functions to execute sequencially, current function's return value or returned defered object resolve parameters will be transfer to next function as parameters.

Take a look the example here

All ajax call should be wrapped by a function, to wait to be started one by one.

How to use it

<!--place it after jQuery.js-->
<script type="text/javascript" src="http://rawgithub.com/lifecube/jQuery.chain.js/master/js/jQuery.chain.js"></script>

Then send the parameters or functions

$.chain({param:value},function1, function2).then(success, failure);

About

jQuery plugin to chain async functions to execute sequencially, current function's return value or returned defered object resolve parameters will be transfer to next function as parameters.

Resources

License

Stars

Watchers

Forks

Packages

No packages published