How to cancel ajax request that has run (on server side)

AndreLiem picture AndreLiem · Apr 28, 2009 · Viewed 18k times · Source

I was wondering if there's a simple way to cancel an AJAX request?

Beyond just calling an 'abort' on the XMLHTTPRequest on the client side, is there a way to easily stop the server process? The server is using Apache.

Thanks

Answer

Steven Richards picture Steven Richards · Apr 28, 2009

No. There's definitely no simple way.

I can think of some complex ways, but they would be unreliable.

You'll probably have more luck developing a process for reversing the changes from a request you've just run (I'm assuming that's the reason you would want to stop it.)