I have a table and all entries are displayed on the page. After some time, an entry is automatically added to the bliss. And it should be displayed on the page without reloading the pages. How can you implement?

    1 answer 1

    You wrote the answer directly to the question tags :)

    AJAX

    Well, if the question is how to find out that something has changed on the server in the database, then:

    • or ajax-ohm we pull the server once in X seconds
    • either long polling
    • either web sockets
    • I almost did everything. Here I can not display on the page if something has changed in the database. - ttt
    • @ttt you were told либо ajax-ом дергаем сервер раз в Х секунд - that is, we check the changes, if we change the output on the page, otherwise - no. - Jean-Claude