I wish to make an AJAX call using jQuery as a \"heartbeat\" in the background so that my web application can check for new data. For example every 10 seconds.
try setting another timeout from your ajax success function:
function poll() {
setTimeout( function() {
$.ajax(.......).success( function(data) {
poll(); //call your function again after successfully calling the first time.
});
}, 10000);
}