I need to use a timer on my page. I wrote in document.ready function the code below:
var timerForLoadingResult= window.setInterval('checkSearchIsCompleted()',4000)
function checkSearchIsCompleted() {
alert('test');
}
But it's not calling the function every 4 seconds. It's showing an error which says that the object is not found... What's the problem?