samedi 1 août 2015

how to make ajax calls continuously for 5 seconds once

how to make ajax calls continuously for 5 seconds once. I have used set Timeout like below,

setTimeout(function()
{
function();
}, 200);

But it use more db connection.can anyone tell me an effective way to call a function continuously for 5 seconds once.

Aucun commentaire:

Enregistrer un commentaire