javascript - Kill an Ajax Request in between -


I'm firing an Ajax request using jQuery. During this process, I show the loading text to the user until it reaches the success / error handle function. Is there any way to cancel the request in the meantime? So that it does not go into the success / error handler variable. In a way I can imagine that there is a better way of using a global variable

thanks

Maybe a start?

$ .jax () gives XMLHttpRequest which makes it. In most cases you will not need to manipulate objects directly, but this requests manually


Comments