Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loadTable()
- {
- var xhttp = new XMLHttpRequest();
- xhttp.onreadystatechange = function()
- {
- if (this.readyState === 4 && this.status === 200)
- {
- //document.getElementById("statuses").innerHTML = this.responseText;
- var table = this.responseText;
- table.tr.forEach(console.log);
- }
- };
- xhttp.open("GET", "get_table.php", true);
- xhttp.send();
- }
- window.onload = function ()
- {
- loadTable();
- setTimeout(loadTable, 10000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement