I hava a functoin that call himself occasionally, that function has some asynchronous call to update the content of the page, but it always fails when it calls itself.
I hava a functoin that call himself occasionally, that function has some asynchronous call
Share
trunpet, I suggest you use setInterval instead of recursive calls.
you can even pass an annonymus function
whre miliseconds is the time interval betwen each call.
Something you might want to do is store the interval in a variable so you can kill it later.
warning: avoid calling it more than once without killing it first.