I want to continuously update an html document using the return of a php file. Therefore I need to use the jQuery function:
$.get('returnfunction.php', function(data) {
test=data;
document.getElementById('t1').innerHTML=test;
});
How can I call this function continuously in javascript? setInterval seems not proper for this asynchronous function.
Thanks