jquery Programming Glossary: updatetimer
stop settimeout in recursive function http://stackoverflow.com/questions/995426/stop-settimeout-in-recursive-function so sure. What would be a solid way to stop the timer var updatetimer function do stuff setTimeout function updatetimer 10000 end.. var updatetimer function do stuff setTimeout function updatetimer 10000 end function this should start and stop the timer #mybutton.. .is ' visible' '#mydiv' .fadeOut 'normal' clearTimeout updatetimer else '#mydiv' .fadeIn 'normal' updatetimer thanks Richard..
stop settimeout in recursive function http://stackoverflow.com/questions/995426/stop-settimeout-in-recursive-function that it overwrites var mytimer everytime. Now I am not so sure. What would be a solid way to stop the timer var updatetimer function do stuff setTimeout function updatetimer 10000 end function this should start and stop the timer #mybutton .click.. I am not so sure. What would be a solid way to stop the timer var updatetimer function do stuff setTimeout function updatetimer 10000 end function this should start and stop the timer #mybutton .click function e e.preventDefault if '#mydiv' .is ' visible'.. timer #mybutton .click function e e.preventDefault if '#mydiv' .is ' visible' '#mydiv' .fadeOut 'normal' clearTimeout updatetimer else '#mydiv' .fadeIn 'normal' updatetimer thanks Richard javascript jquery settimeout share improve this question..
|