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)

Junior Member

5+ Year Member

joined:Feb 6, 2008
posts: 94
votes: 0

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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 16, 2007
votes: 0

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.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members