Tuesday, April 15, 2014

jQuery, simple polling example

function doPoll(){
    $.post('ajax/test.html', function(data) {
        alert(data);  // process results here
        setTimeout(doPoll,5000);
    });
}
http://stackoverflow.com/questions/6835835/jquery-simple-polling-example

No comments:

Post a Comment