I
I
IgorNoskov2019-01-30 16:19:35
AJAX
IgorNoskov, 2019-01-30 16:19:35

Is it possible to send an ajax request without waiting for a response to reload the page and then catch the response?

Hi friends!
There was such a question, perhaps, it will seem strange to someone, but I want to understand.
Let's say a request to the server takes 30 seconds. Is it possible to send an ajax request without waiting for a response to reload the page, for example, at 10 seconds and then catch the response at 30 seconds?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Somewhere Intech, 2019-01-30
@IgorNoskov

No
upd
you should not think about getting an ajax response after closing - this is not possible (the server will not wait for the user to open the browser, and he simply cannot do this). You get a response - save the timestamp in the cookie and output a timer relative to it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question