Hi
I am wondering if you do an AJAX request and you have a method that should run when the AJAX request stops. Will the jQuery ajax stop run if the request runs into an error (such as a 500 error) or if say the request times out?
Hi
I am wondering if you do an AJAX request and you have a method that should run when the AJAX request stops. Will the jQuery ajax stop run if the request runs into an error (such as a 500 error) or if say the request times out?
Yes, the ajaxStop()
event will execute when this happens :)
It happens in the global complete
handler, which executes error or not.