I have a periodically_call_remotediv ( main_div) update in my web application. This one main_divcontains links that the user can click, causing an action that overwrites the data in main_div.
My problem is that the timer works in the function periodically_call_remote, and even if the user has moved from the page, this function call still wants to return. If present on the page main_div, a function call destroys the data that is currently displayed. If main_divnot on the page, then javascript returns an error dialog box.
So my question is when the user moves away from the periodically updated div, how do I stop the function call?
source
share