Difference between revisions of "JQuery promise method"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(External links)
(See also)
 
(3 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
* [[Futures and promises]]
 
* [[Futures and promises]]
 
* [[jQuery Deferred object]]
 
* [[jQuery Deferred object]]
 +
* [[Promise object (JavaScript)]]
  
 
== External links ==
 
== External links ==
Line 52: Line 53:
 
* [https://lostechies.com/derickbailey/2012/03/27/providing-synchronous-asynchronous-flexibility-with-jquery-when/ Providing Synchronous / Asynchronous Flexibility With jQuery.when] by Derick Bailey
 
* [https://lostechies.com/derickbailey/2012/03/27/providing-synchronous-asynchronous-flexibility-with-jquery-when/ Providing Synchronous / Asynchronous Flexibility With jQuery.when] by Derick Bailey
 
* [http://www.ryanmwright.com/2011/09/06/always-keep-your-jquery-promises/ Always keep your (jQuery) Promises] by Ryan
 
* [http://www.ryanmwright.com/2011/09/06/always-keep-your-jquery-promises/ Always keep your (jQuery) Promises] by Ryan
 +
* [http://www.maori.geek.nz/i_promise_this_will_be_short/ JQuery Promises and Deferreds]
 +
* [https://msdn.microsoft.com/en-us/magazine/gg723713.aspx Creating Responsive Applications Using jQuery Deferred and Promises] by Julian Aubourg and Addy Osmani
 +
* [http://cargocollective.com/jackm/Recursive-Promises-Example Recursive Promises Example] by Jack Montgomery
 +
* [http://www.tutorialsavvy.com/2013/11/jquery-promise-object-for-asynchronous-method-handling.html/ Jquery Promise Object For Asynchronous Method Handling] by Sandeep
 +
* [https://www.mobomo.com/2011/02/fun-with-jquery-deferred/ Fun With jQuery Deferred] by Michael Bleigh 
 +
* [https://www.roelvanlisdonk.nl/2014/07/13/how-to-pass-extra-additional-parameters-to-the-deferred-thenfunction-in-jquery-q-angularjs-or-q/ How to pass extra / additional parameters to the deferred.then()function in jQuery, $q (AngularJS) or Q] by Roel van Lisdonk
 +
* [http://www.lampdev.org/programming/jquery/jquery-deferred-chained-ajax-calls.html JQuery promise and deferred chained calls]
 +
* [http://www.mattlunn.me.uk/blog/2014/01/tracking-joining-parallel-ajax-requests-with-jquery/ Tracking/ joining parallel AJAX requests with jQuery] by Matt Lunn
 +
 +
  
  
Line 58: Line 69:
 
[[Category:Computer science]]
 
[[Category:Computer science]]
 
[[Category:Computing]]
 
[[Category:Computing]]
 +
[[Category: JavaScript promises]]
 
[[Category:jQuery]]
 
[[Category:jQuery]]

Latest revision as of 06:28, 25 September 2016

In jQuery, the .promise() method returns a dynamically generated Promise that is resolved once all actions of a certain type bound to the collection, queued or not, have ended.

Description

By default, type is "fx", which means the returned Promise is resolved when all animations of the selected elements have completed.

Resolve context and sole argument is the collection onto which .promise() has been called.

If target is provided, .promise() will attach the methods onto it and then return this object rather than create a new one. This can be useful to attach the Promise behavior to an object that already exists.

See also

External links