How to refresh time continously using Jquery and webmethod
how to refresh time continously using Jquery and webmethod in asp.net?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ahmar HusainRank #1,312 · 1.3K reputationPosted Nov 25, 2013, 7:04 PM EST
setTimeout(function(){
//Ajax call to your webmethod
},3000)
3000 here means 3 seconds.
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Nov 25, 2013, 7:31 PM EST
@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.