PDA

View Full Version : Abort Ext.data.Ajax.abort not working



tpires
7 Jul 2011, 6:15 AM
Hi there,

I tried to abort a long polling AJAX call but it doesn't seem to work...

The call is done this way:
Ext.Ajax.request({
url: "http://www.someurl.com",
disableCaching: false,
method: 'post'
});

Here is the abort code:
Ext.Ajax.abort();

Anyone has an idea of what could be wrong ?

bharatn
7 Jul 2011, 6:18 PM
Are you passing the request object to abort? When you call request, save the returned object and pass to abort.

Edit: Actually it should work if the request is not passed. It will try to abort all requests which you may not desire.