Given the following: var doThings = (function ($, window, document) { var someScopedVariable = undefined,
Any ideas how you might use JQuery\'s deferred methods with a function that detects all changed forms and submits each one as an Ajax post?
I\'ve been investigating the new(ish) deferred object in jQuery and I stumbled across this website article here .
I don\'t really understand what dele开发者_开发知识库gate and promise are. According to the docs -
See here: http://blog.jquery.com/2011/05/03/jquery-16-released/ What is the difference between this new format:
When multiple Deferred objects are passed to jQuery.when, the method returns the Promise from a new \"master\" Deferred object that tracks the aggregate state of all the Deferreds it has been passed.
In jQuery, deferred.then adds handlers to be called when the Deferred object is resolved or rejected.
I\'ve been reading a lot about the new jQuery.Deferred object. One thing that\'d be really useful would be to be able to convert an existing object into a deferred one, then you\'d get 100% flexibilit
Inspired by this (excellent) discussion of using Promises in javascript, I\'m trying to work out how I could use Deferred to chain together async and non-async functions, to avoid paying the callback
I have a chain of ajax requests that support a series of cascading drop down select lists. When you select a value in the 1st drop down, a request is fired to populate the 2nd, when that is complete (