I have two files, index.php
and table.php
. My table.php
is included in index.php
file in a div. For that, I did it as:
$("#tableloader").load('table.php')
My table.php
changes every second. So to reflect it changes in the index.php
file I tried:
function get_table() {
$("#tableloader").load('table.php')
}
setTimeout( get_table, 1000 );
But it loads the table.php only once, not every second...