Wait for the person, I think I have the right answer, because I faced the same problem! try using the mouse event [click, movemouse ..], but with a delay, so as not to create a crash in the navigator, you will use setInterval in xx sec or minutes after saving the event response to your db in the activity column, but with unix time to differentiate him later and now. Its useful indeed, I used it to register acitvity members, to know what they really do in real time, and to get online users offline. js functions are used here:
var body = document.getElementById('body'); var url = './member-activity.php?loggedUser=<?=$memb_id?>&curl=<?=($_SERVER['QUERY_STRING'])?>'; if(document.addEventListener) { document.addEventListener("click", _EventLogging, false); document.addEventListener("mousemove", _EventLogging, false); }else{ document.attachEvent("onclick", _EventLogging); } function _EventLogging(){
The div above should notify you of errors in the code, and delete it when it is ok! i hope my answer was correct for ur case // dr.alpha@hotmail.co.uk
source share