Home › Forums › Back End › Autoupdate wall using Ajax? › Re: Autoupdate wall using Ajax?
February 22, 2012 at 9:41 pm
#97264
bungle
Member
you need to give the table an id so you can refer to it and then put that inside another div that will function as the container
and then use the jquery load() function to load the page via ajax and insert just the table into the div
function refreshPosts(){
$('#container').load('posts.php #table');
}
setInterval('refreshPosts()',10000);