PDA

View Full Version : Ext.Ajax.isLoading() always false



tqwhite
25 Aug 2009, 11:09 AM
I have a set of grids with stores using httpProxy. A late requirement has arisen that would be solved by determining that all of my grids have finished loading, ie, no pending ajax requests, before allowing form submission. At first this seemed simple, Ext.Ajax.isLoading() has always been very kind to me. This time it's not.

I have tried all sorts of experiments. isLoading() is always false, even when I can actually see an active, incomplete ajax process in Firebug. My nearby colleagues have suggested several ways of rewriting the thing to deactivate the submit, make a list that I can check, etc. I assume that I could collect a bunch of process IDs and check them with isLoading() and have a better result. It just seems a waste of time to do that when isLoading() is supposed to work.

Any thoughts?

thanks,
tqii

BitPoet
25 Aug 2009, 11:18 AM
You need to check your individual transaction ids, as isLoading without a parameter defaults to the last started transaction, though that one may have finished before the long-running one returns.