Difference between revisions of "JQuery promise method"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (→External links) |
Karl Jones (Talk | contribs) (→External links) |
||
Line 52: | Line 52: | ||
* [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 | ||
+ | |||
+ | |||
Revision as of 05:58, 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
- .promise() @ api.jquery.com
- deferred.promise() @ api.jquery.com
- What’s the deal with jQuery Deferred objects and Promises?
- Making Promises With jQuery Deferred
- Wrangle Async Tasks With JQuery Promises by Trevor Burnham
- Deferred and promise in jQuery
- An Introduction to jQuery’s Deferred Objects by Aurelio De Rosa
- Make Your Own jQuery Deferreds and Promises
- Promise & Deferred Objects in JavaScript Pt.2: in Practice
- AJAX & Deferreds
- How do I create and resolve a JavaScript or jQuery promise?
- Asynch JS: The Power Of $.Deferred
- Differences between jQuery Deferreds and the Promises/A+ spec
- You're Missing the Point of Promises
- Sequential AJAX and jQuery's Promises
- You're Missing the Point of Promises
- JQuery : Why I prefer $.ajax promise
- jquery.promises - Grouping related jQuery Deferreds, managing them collectively.
- jQuery promises: .done and .then are not the same
- Javascript Promises And Why Jquery Implementation Is Broken
- Write Better JavaScript with Promises
- jQuery.Deferred is the most important client-side tool you have
- http://www.columbia.edu/~njn2118/journal/2015/9/11.html
- promise
- Managing multiple jQuery promises by Herman Radtke III
- Mapping Errors In Jquery Promises / Deferred
- jQuery broken promises illustrated
- jQuery, Promises & Deferred @ I Programmer
- Manage async events with Jquery promise
- Understanding JavaScript Promises In jQuery
- Promise Chains
- Deferred / Promise pattern using jQuery by Daniel Demmel
- How to properly unit test jQuery's .ajax() promises using Jasmine and/or Sinon?
- Using the jQuery Promise Interface to Avoid the AJAX Pyramid of Doom
- Providing Synchronous / Asynchronous Flexibility With jQuery.when by Derick Bailey
- Always keep your (jQuery) Promises by Ryan
- JQuery Promises and Deferreds
- Creating Responsive Applications Using jQuery Deferred and Promises by Julian Aubourg and Addy Osmani
- Recursive Promises Example by Jack Montgomery
- Jquery Promise Object For Asynchronous Method Handling by Sandeep
- Fun With jQuery Deferred by Michael Bleigh
- How to pass extra / additional parameters to the deferred.then()function in jQuery, $q (AngularJS) or Q by Roel van Lisdonk
- JQuery promise and deferred chained calls
- Tracking/ joining parallel AJAX requests with jQuery by Matt Lunn