I'm looking for a way to call a function every N seconds in order to update data displayed on the page.
Is there a built-in functionality to accomplish this task or do I have to do it by myself?
There are the window.setTimeout and window.setInterval javascript functions. For example:
window.setInterval(function() {
// this will run on every 10 seconds
// Here you can send AJAX requests to your controller actions in order
// to refresh some data
}, 1000 * 10);