how to refresh time continously using Jquery and webmethod
how to refresh time continously using Jquery and webmethod in asp.net?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaganathan BantheswaranPosted Nov 26, 2013, 12:31 AM
@Ahmar, thats not setTimeout but setInterval.
Use setInterval function to call the function repeatedly in a specified time interval something like this
setInterval(function(){
//Ajax call to your webmethod
},3000)
3000 here means 3 seconds.
Ahmar HusainPosted Nov 26, 2013, 12:04 AM
setTimeout(function(){
//Ajax call to your webmethod
},3000)
3000 here means 3 seconds.