R
ryanf
Hello, I want to be able to log if a user is on certain pages for
longer than 5 seconds. So if the user goes to the page it starts the
timer then if it gets to 5 seconds it will fire off a ajax call to a
php page that will update the database.
I know the code I should use, my question is when you use
setTimeout("doLog()", 5000); does the system hang while it counts to
five? or does it allow other things to happen. I have lots of the other
javascript on the page like allowing the user to edit form cells by
calling a onblur ajax function to update the database. I dont want the
user to not be able to edit anything for 5 seconds while it waits or
skrew up the timer if they edit anything.
Any ideas?
Thanks
longer than 5 seconds. So if the user goes to the page it starts the
timer then if it gets to 5 seconds it will fire off a ajax call to a
php page that will update the database.
I know the code I should use, my question is when you use
setTimeout("doLog()", 5000); does the system hang while it counts to
five? or does it allow other things to happen. I have lots of the other
javascript on the page like allowing the user to edit form cells by
calling a onblur ajax function to update the database. I dont want the
user to not be able to edit anything for 5 seconds while it waits or
skrew up the timer if they edit anything.
Any ideas?
Thanks