Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

view message marked as read



12:32 am on Oct 6, 2008 (gmt 0)

5+ Year Member

i have a page that shows a pm that a user sent to the certain user. and im trying to make it so that when the user views the page for at least 5 seconds, it updates the database to `messageread` = 1, in this case 1 means it has been read, 0 means its unread. but im not sure how to approach the viewing for 5 seconds thing, so i came here to ask if anyone has any suggestions?


4:01 am on Oct 6, 2008 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

I can't think of any way to do it without javascript: onload set a 5 second timer, then send an ajax request to a script that would set the flag.

Featured Threads

Hot Threads This Week

Hot Threads This Month