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?
NOTE I am asking this question again as my previous question was marked duplicate but the answers of that question does not solve my problem.