how to schedule ajax calls every N seconds?

You could use setTimeout or setInterval (the latter is probably best suited to what you want to do).

setInterval(makeRequest, (10 * 1000));

…where makeRequest is a function that reloads some content via AJAX.

Leave a Comment