[jQuery] Timeout is triggered after calling .abort() on xhr request

2008-10-15 Thread Pigletto
Hi! I'v found that aborting ajax request that has timeout set, doesn't stop timeout event from occuring. My code is something like: -- $.ajaxSetup({ timeout:12 }); var req = $.ajax({url:AJAX_URLS.my_url, type:

[jQuery] Re: Timeout is triggered after calling .abort() on xhr request

2008-10-15 Thread Pigletto
I think I've managed to do that. While aborting request I do: if (req){ req.abort(); req.is_aborted=true; req=null; } and in error_handler: error_handler:function(xhr, textStatus, errorThrown){ if (textStatus=='timeout' (!xhr || xhr.is_aborted)){ return true;