how to make ajax calls continuously for 5 seconds once
问题 How to make ajax calls continuously for 5 seconds once. I have used setTimeout like below, setTimeout(function() { someFn(); }, 200); But it use more db connection. Can anyone tell me an effective way to call a function continuously for 5 seconds once. Function that i use inside setTimeout or setInterval will be used to update values to database.hence this will increase db connections. and result in lost db connection error.so i need something that will not increase db connections i am using