homepage Welcome to WebmasterWorld Guest from 54.237.54.83
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
view message marked as read
tr8er8




msg:3759388
 12:32 am on Oct 6, 2008 (gmt 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?

 

cameraman




msg:3759430
 4:01 am on Oct 6, 2008 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved