I don’t understand a thing about $.ajax, .done and .fail
I start my ajax call, assigning this to a variabile.
At next ajax call i test if variable is defined, and then i call abort.
I’m not able to undertsand if .abort() causes execution of .done or not.
If it causes .done, how to check status and detect aborted call ?
From http://api.jquery.com/jQuery.ajax/#jqXHR :
In particular, calling .abort() on the object will halt the request before it completes.
… so I understand that .done will not be fired after a .abort, right ?
The second argument to the
failcallback istextStatus, for an aborted request that should be"abort". I wouldn’t expect thedonecallback to be fired.