Q BgQuestion:

Pupil
Karma Points: 50
Respect (90%):
posted by  Jafar on 7/21/2008 11:37:47 PM  |  status: Live  

Group Chat (Web Based), As many users can chat (Text messaging only) at a time at one single place. Private messaging (single user to a single user in the group chat) is optional.

Course Textbook Chapter Problem
N/A N/A N/A N/A
Question Details:
Group Chat (Web Based)

Features: As many users can chat (Text messaging only) at a time at one single place. Private messaging (single user to a single user in the group chat) is optional.

Suggested Flow: User will be asked to provide a nick to enter a chat room. After providing the nick user will be redirected to chat room. You can make interface just like Yahoo Chat or any other in which all the users in the room would be listed along with their messages which they are sending. User would be able to send a message through some text box. When user’s request would reach server his/her message would be put into the db along with the nick. All you need to do is to query the db for getting messages and displaying them on the page. You may set a refresh rate (Using JavaScript to refresh the page after some seconds) to get latest messages.

You would be encouraged if you used AJAX to send and receive your request, which will prevent your chat room page to be fully refreshed. Its very simple takes a look at this tutorial

(www.w3schools.com/ajax ).

Concepts Involved:

v     Databases

v     JSP or Servlets

v     JavaScript or AJAX

v     Exception handling

v     String Manipulation

AAnswers:

Answer Question

No one has answered this question yet.

Be the first to answer. Earn up to 9 karma points.

Answer Question
Ask New Question

Join Cramster's Community

Cramster.com brings together students, educators and subject enthusiasts in an online study community. With around-the-clock expert help and a community of over 100,000 knowledgeable members, you can find the help you need, whenever you need it. Join for free today » How Cramster is different than tutoring »