I have implemented a session timeout using JQuery plugin and its been implemented like, from page loads, it starts the timer and after 10 seconds, a popo-up will be shown. something like this http://rigoneri.github.com/timeout-dialog.js/
function ShowTimeoutWarning(){
$.timeoutDialog({timeout: 1, countdown: 60, restart_on_yes: false});
}
setTimeout( 'ShowTimeoutWarning();', 100000 );
This code works fine when the user is idle for 10 seconds. But even though the user is doing some operation on the page, the popup is displayed, no matter the user is idle or not. I want this code to be run only when the user is idle. Please help me on this regard.
Thanks!!!