I am having a website where a user submits a form using ajax. The response is shown in alert whether the form was successfully submitted or the details of the problem. Now since this process is asynchronous, if the user navigates to another page before the response is received, the XMLHttpRequest
object that was used for submitting the form is deleted and the user does not get feedback about the status of the submitted form.
So, is it possible to have the XMLHttpRequest
object remain active even if the user navigates to another page?