This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I've been goofing around w/ trying to build a script that will refresh a web page *if* there is no activity happening on the page. For example; if someone is typing into one of the form fields or clicking something...I don't want the page to refresh and wipe out what they're doing...but if there *is* no activity...I'd like the page to refresh every 30 seconds or so.
I tried doing something like this:
which is called by this function:
...and then...in the page:
NOTE: I had to rename it to on1oad because of the forum...it's an intentional type.
The page is refreshing but it doesn't *stop* refreshing if I'm typing into the form...and I need it to stop if an event is occuring...and the timer should start over once no events are detected. I've been fooling w/ this thing for hours and just can't spend any more time on it...anyone have some clues for me?