jquery - resetting timer

Posted by Phil Jackson on Stack Overflow See other posts from Stack Overflow or by Phil Jackson
Published on 2010-03-24T21:10:37Z Indexed on 2010/03/24 21:13 UTC
Read the original article Hit count: 332

Filed under:
|

Hi, im using a plugin to do something ever 10 secs:

function status_updates(){
    $("p").everyTime(1000,function(i) { 
        if(i==10){
            alert("foo");
            // something here
        }else{
            $(this).html(i);    
        }
    });
}
status_updates();

where it says something here I need to add something to reset the timer but i dont know how. The plugin is here: http://jquery.offput.ca/every/ or if you know of an other way it would be much appreciated.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about timers