SyntaxFix
Write A Post
Hire A Developer
Questions
You could try setInterval() instead:
var i = setInterval(function(){ //Call ajax here },10000)