Verify idle time?
-
Hi, I have a web application programmed in visual web developper. I would like to perform some action when the application has gone idle, or if the user stops using it. Could someone please let me know where to find some sort of example to do this?:confused: Thanx in advanced Yibi
-
Hi, I have a web application programmed in visual web developper. I would like to perform some action when the application has gone idle, or if the user stops using it. Could someone please let me know where to find some sort of example to do this?:confused: Thanx in advanced Yibi
yibiBrown wrote:
I would like to perform some action when the application has gone idle
Please define what you mean by a "Web Application gone idle". Idle is not a common term used in technical discussions of web applications. By not common I mean I have never heard anyone use it before.
led mike
-
Hi, I have a web application programmed in visual web developper. I would like to perform some action when the application has gone idle, or if the user stops using it. Could someone please let me know where to find some sort of example to do this?:confused: Thanx in advanced Yibi
do u mean session of the web application?
Amit Agarwal
-
yibiBrown wrote:
I would like to perform some action when the application has gone idle
Please define what you mean by a "Web Application gone idle". Idle is not a common term used in technical discussions of web applications. By not common I mean I have never heard anyone use it before.
led mike
-
What I mean by the application going idle is that the user has stopped working with it. Either the mouse hasn't moved or the keyboard pressed in a given amount of time. Yibi
In case you are interested I had no idea how do this. I found all the information using Google.
function initializePage()
{
document.onkeydown = function()
{ SetupTimer(); }
document.onmousemove = function()
{ SetupTimer(); }SetupTimer();
}
var activityTimer = null;
function SetupTimer()
{
if(null != activityTimer) clearTimeout(activityTimer);
activityTimer = setTimeout("alert('Timed out')", 5000);
}led mike