Click here to Skip to main content
16,005,734 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...
I'm asked to develop an intra net chat. There are many tabs like Home, Chat, Articles etc in my application. Chat module is what i have to develop. My requirements are like this..


1) Who ever has logged into the web application their user names must be displayed in a list.
2) When a particular user is clicked, a chat window should open up where i can chat with the user i selected.
3) If i send a chat message to an user, he must recieve a pop up kind of alert if he's in some other tabs like Home, Article.
4) On clicking the alert message the user should be able to open his chat message directly or he can open his chat module(tab) to view his chat message.

Regards,
Abdul
Posted

1 solution

You have to create an application / module which can be integrated with the actual application. Points you have to concentrate are

jeanuba wrote:
1) Who ever has logged into the web application their user names must be displayed in a list.

You have to use some tracking mechanism to store the list of logged in users. You have to use remove the users from the list if they sign out or timed out. All the pages that the user is browsing has to ping back the server saying the user is alive in 'frequent intervals'.

jeanuba wrote:
When a particular user is clicked, a chat window should open up where i can chat with the user i selected.

Create a popup page(Chat Window) that can communicate the server using Ajax.

jeanuba wrote:
If i send a chat message to an user, he must recieve a pop up kind of alert if he's in some other tabs like Home, Article.

All the pages has to ping the server for any available messages at frequent intervals. If any, show the alert as you require.

jeanuba wrote:
On clicking the alert message the user should be able to open his chat message directly or he can open his chat module(tab) to view his chat message.

If the user clicks alert, it will open the popup(Chat Window) with the messages.
 
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