[jQuery] Re: JQuery timer with reset option

2008-03-29 Thread Jimslam
UPDATE: I had set the "mousemove" event to bind to "window": $(document).ready(function() { startTimer(); $(window).bind("mousemove", function() { resetTimer(); }); }); That works fine in FF, but IE had some trouble

[jQuery] Re: JQuery timer with reset option

2008-03-25 Thread ethodaddy
thank you both for your input. Jimslam your example works great, thats exactly what i need.

[jQuery] Re: JQuery timer with reset option

2008-03-24 Thread Jimslam
Here's a page timer I'm using - right now it's set to 15 seconds and displays the current count every second in a div with id "timer". There's probably a more elegant solution, but this can at least be a start. The key is clearing the "setTimeout" function when the timer gets reset, as just sett

[jQuery] Re: JQuery timer with reset option

2008-03-24 Thread ripple
Try the regular javascript setTimeout() function and see how that works for you. I choose to use that over any of the jquery timers I have seen. ethodaddy <[EMAIL PROTECTED]> wrote: Hi All, I'm very new at JQuery and have been messing about with a timer that will trigger a logout scrip