Basically i have a dynamic HTML table
<table id="example"></table>
.
The contents inside the table changes based on the URL. My default URL will be
index.php?action=add
For this i have written a function to refresh my table for every 5 seconds, which works fine
var autoLoad = setInterval(
function ()
{
$('#example').load('index.php?action=add #example').fadeIn("slow");
}, 5000);
Then i'l change my URL to
index.php?action=add&subdo=loc
.
This will change the contents inside my HTML table.
So how do i refresh the new contents for every 5 seconds in my HTML table for index.php?action=add&subdo=loc
EDIT : I will have to change to multiple URL's for different contents in my TABLE for different URL's. NOT one
index.php?action=add&subdo=loc1
index.php?action=add&subdo=loc2