You are currently viewing the Forum and Wrox.com Feedback section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
why dont you store the messages in database table and retrieve it for every particular interval(for ex. 1 minute) using javascript setTimer() function and ajax to get message from database.
use one status field in ur database table. change the status for the displayed messages.
you have to retrieve only the not displayed messages by checking the status field.
you can list all messages without considering the status field for "view history" option as well.