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...
Loading
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.
Ajay PatelPosted May 16, 2013, 7:20 AM
I want this timer click event in JS
Abhishek SurPosted May 15, 2013, 1:02 AM
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.