Hi All,
I have the following code and I would like to be able to abort the event handling:
var req = $.get(myurl).done(function() {
console.log('error!!! abort event handling!');
req.abort();
}).done(function() {
console.log('success!');
}).done(function() {
console.log('success again!');
}).done(function() {
console.log('and again!');
});
but even when I explicitly aborted the request ( req.abort() ), the rest of the callback functions are still being executed. I don't want the rest of the callback functions to be called. How could I achieve this?
Thank you very much.
Gonzalo.