Ages ago, when I first starting building my page (for systems monitoring),I added:
<script language="javascript" type="text/javascript">setTimeout("location.reload();",60000);</script>
to make the page reload every 60 seconds.
It has worked really well up until now. But it [the page] has grown with more PHP and greater use of JQuery etc).
I am now looking for a way to pause the setTimeout / then resume it later on.
I have some jQuery that, when an element is rightclicked, it loads some data, and displays a small table with that result. But I want it so that when that table is being displayed, the page doesn't refresh. When the page is then hidden again, the setTimeout resumes.
What would be the best way to do this? (n.b. the 60000 is currently set in PHP from a configuration variable).