tags:

views:

22

answers:

1

need to update html page periodically by the data from server, but couldn't find a Jquery ajax function to do that, any suggestion? Thanks.

+1  A: 

You should use setInterval().

http://www.w3schools.com/jsref/met_win_setinterval.asp

setInterval(ajaxFunction, 5000);
Mark
Actually, `setInterval(ajaxFunction, 5000);`, very important difference there ;)
Nick Craver