thorst / jquery-idletimer

provides you a way to monitor user activity with a page.
MIT License
721 stars 144 forks source link

getElapsedTime Not Working #16

Closed thorst closed 11 years ago

thorst commented 11 years ago

The following line outputs an object, instead of the elapsed time in ms

console.log($(document).idleTimer("getElapsedTime"));

thorst commented 11 years ago

This may be an error in my understanding.

I was looking for a function that gave me the users inactive time.

Not the time since they WENT inactive.

In other words i was looking for the time since last active, regardless of whether the idle.idleTimer event fired.

I will fork and add.

thorst commented 11 years ago

Never mind, something else seems to be the issue. If i use the demo and move my mouse it will sometimes say its active, other times it ignores my mouse movement and says ive been inactive.

Firefox 20.0.1

lboynton commented 11 years ago

I've noticed this too. $( document ).idleTimer("getElapsedTime"); returns the document element for me, rather than an integer. However, $.idleTimer("getElapsedTime"); does work.