Click here to Skip to main content
16,012,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, i am building a forum application i want my application users to be able to send messages to each other and application will show some alert that they have new message. I am a beginner i have no idea how to achieve this, can anyone please guide how to get started for this.

Thanks and regards.
Posted
Comments
Raj Bose 28-Mar-11 16:20pm    
You can set a reminder which will check in an intervel and if any new msg , then tat will show , means create a msgStatus field which will unread , read like that and when checking check with datetime a time too

1 solution

You can use page methods to periodically (say, every 5 or 10 seconds) send a request to the server asking for new messages. You can setup a JavaScript timer to control the lookup period. You can then use some JavaScript to update the page with the new messages. When a user submits a new message, store it in a database.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900