PDA

View Full Version : Ext.Ajax.isLoading return false when not all requests were completed



Vartlok
15 Nov 2013, 2:46 AM
I need to do some action on panel after all Ajax requests completed and for this purpose I added handler:


Ext.Ajax.on('requestcomplete', function(conn, response, options) {
if (!Ext.Ajax.isLoading()) {
// do action
}
});

But I found that in case when execute request by Ext.Ajax.request method Ext.Ajax.isLoading() return false regardless in which state this request.

Do someone know how to fix it? Or possible exist some other way for define that all requests completed?

scottmartin
15 Nov 2013, 5:25 AM
isLoading( [request] ) : Determines whether this object has a request outstanding.

Ext.Ajax.on('requestcomplete', function(conn, response, options) {
if (!Ext.Ajax.isLoading()) {
// do action
}
});