Refreshing the page would defeat the point of AJAX

. I think you mean you want to update data within the page without "refreshing" the page. This would be done using a counter via Javascript to count an interval, then sending an AJAX request to your script, which fetches and spits out the data. The data then comes back to the browser, at which your Javascript will take over and parse/insert the info into the page.