There is such code:
function get_frame(){ $.ajax({ url: "/ajax/zone_moves.php", dataType: "json", type: "POST", data: {action:"get_frame"}, success: function(resp) { $.each(resp, function(){ $("div#3_4").text(this.text) }) } }) }
Its essence is as follows. We receive two-dimensional json array from the server. In each array there is a text field. Tell me how, for example, with a gap of 5 seconds to display this field, for example, an alert or as in the code in div'e. Those. the answer is received, the text field of the first line of the array in the diva is shown, after 5 seconds the next line, etc. Until the array is over. And as the end, you need to again get new data from the server.
Those. at the moment, the code seems to be working (without re-polling, but this is not a problem), but it goes over the array rows so quickly that it is not visible visually and looks as if only the last line is displayed in a diva.