I\'m getting an unexpected result when using $.when() when one of the deferred operations does not succeed.
Let\'s say for example that I have two functions with random code inside and also that based on the user\'s system (slow, medium, or fast) there is no way to tell how long the two functions will take
I am registering callbacks on a few jquery ajax objects. So I have: function main_getLogin( options ){
I had try something with the below: $.when($(smtg).fadeOut(300)).then($(smtg).fadeIn(300)); What\'s wrong with it while the document at http://api.jquery.com/jQuery.whe开发者_JAVA技巧n/
I am trying to use the jQuery.when to fire two ajax requests and then call some function after the two requests have completed. Here\'s my code:
I have two webmethods returning dates from a .net 3.5 page. Each return a start and end date string, respectively.
Code example: http://jsfiddle.net/MhEPw/1/ I have two jQuery Deferred objects. I want to have more than one \'async\' request happening - and after they all run I want the callbacks (the .done funct
I have some code where I wish to call a page method for each row in a datatable. Each row contains user information and the page method looks for additional data regarding that user, in a certain time
It seems as if the then() callback is not firing when a Deferred object is rejected.It was my understanding then() should be executed whether the Deferred resolves or rejects.
Does any one know of any significant performance penalties involved with using the new jQuery \'promises/deferred object\' pattern over the old jQ开发者_运维知识库uery style ajax methods that had stan