I
I
Ivan Solovyov2018-03-30 14:31:50
PHP
Ivan Solovyov, 2018-03-30 14:31:50

How is the background unloading of updated data from the server done correctly?

There is a website with courses, charts, etc. When updating data on the server, do you need to update the information on the page?
I think to send an ajax request every few seconds and the received data is processed, but I don’t know if this is the right decision.
How is it done correctly?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
K
Kirill Kublyakov, 2018-03-30
@Ivan5130

Google for "Long polling", "Long poll"

K
Kirill Gorelov, 2018-03-30
@Kirill-Gorelov

You already answered your own question. All this is done through ajax, if you need to do it without reloading the page.

E
Egor Zhivagin, 2018-03-30
@Krasnodar_etc

And another option I'll throw - Web Sockets

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question