Sridhar Subramanian has a very good article on accessing wcf services from JQuery, take a
Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts
Thursday, February 17, 2011
Wednesday, February 16, 2011
Creating a timer with JQuery Timer
Just found a great plugin that allows me create a timer with jquery instead of using pure javascript.
You can download the plugin here Jquery Timer.
To use the plugin to create a timer,use the everyTime function like this,
//add timer tick function here
$('#span1').html(count);
To stop the timer, call stopTime.
download sample code Here
You can download the plugin here Jquery Timer.
To use the plugin to create a timer,use the everyTime function like this,
$('#timer').everyTime(1000,'label',function(){
//add timer tick function here
$('#span1').html(count);
});The everyTime function allows you to use a label,so you can create and stop separate timer instances.
To stop the timer, call stopTime.
$('#timer').stopTime('label');and thats it.
download sample code Here
Subscribe to:
Posts (Atom)