View Full Version : Parallel requests with Ext.Ajax.request
Ronits
31 Jul 2013, 9:54 PM
Hi,
I would like to know the mechanism to fire parallel Ajax requests in ExtJS.
Using a
$.when().then() enables the mechanism in jQuery.
Also, if any other approach is there, please suggest.
Thanks,
Ronit
evant
31 Jul 2013, 10:07 PM
They aren't parallel requests, it's basically just syntax sugar for callbacks.
Ronits
1 Aug 2013, 12:05 AM
But, thing is, within when(), I can put multiple ajax requests which are fired simultaneously, and the time taken would be the maximum time taken by any of the requests.
How do I handle the same in ExtJS... (without using jQuery syntax).
eric.cook
1 Aug 2013, 8:10 AM
This feature doesn't exist in Ext JS. However, someone implemented promises/deferreds and a new Ajax singleton that uses them.
Ext.ux.Deferred (http://www.sencha.com/forum/showthread.php?264163-Ext.ux.Deferred)
Ext.ux.Ajax (http://www.sencha.com/forum/showthread.php?264257-Ext.ux.Ajax)
I've never used these myself so I don't know if it covers your use cases, but it's a start.
Powered by vBulletin® Version 4.2.3 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.