Hello,
I want to fire javascript function on Timer's Tick event.
Actually, I am trying to do as following,
Check validation in JS function when timer get Click and then if validation passed then proceed to fire server Function.
Thnaks...
Fire JavaScript function on timer's Tick event
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Abhishek SurRank #823 · 2.8K reputationPosted May 14, 2013, 9:02 PM EDT
You can create a timer using setInterval in javascript. You can check its usage from W3CSchool.
http://www.w3schools.com/jsref/met_win_setinterval.asp
By the way, if you want the Timer to fire for only once, use setTimeout instead. Just pass the validation method inside the setTimeout after a certain time to check whether the validation is passed or not.
I hope this is what you want.
Ajay Patel148 reputationPosted May 16, 2013, 3:20 AM EDT
I want this timer click event in JS