4
I have an intranet system, which sellers attend some classes.
Sometimes they leave the window open in that URL for days.
The system via ajax, has a counter, so if the page is open, it keeps ordering and recording in the bank that the guy is online.
But like I said, he can leave the window open for days.
I think the best way would be to capture if he moved the mouse.
So what I need is, how to know if it does more than 30 min (per example) that it does not move the mouse.
With this, when spend 30 min without moving the mouse, I can display a dialog on the screen, asking, are you still there? If he doesn’t answer (in up to 30 seconds for example), I’ll drop him.
My doubt would be even, how to know if it makes more than 30 min (for exmeplo) that it does not move the mouse
Any suggestions?
See if this helps: http://stackoverflow.com/questions/667555/detecting-idle-time-in-javascript-elegantly
– eightShirt
Ball show, I’ll test it. Thank you :)
– Luhhh
Did any of the answers solve your problem?
– Sergio