Im doing almost same thing with a chat, reloads a php script every xx sec.
Looks like this:
replace j with $ if not using jquery.noconflict..
j(".chatref").everyTime(3000,function(i){
j.ajax({
url: "chatx.php",
cache: false,
success: function(updated){
j(".chatref").html(updated);
...do stuff..
}
});
This is an very nice method i think :) if you want to send vars to chatx.php just add ?php &x=1&y=2?>