I am designing a php,Ajax chat application with Mysql back-end.Its working fine.I wanna add an extra feature in this apps.I wanna show the users who is present in the chat room.When some one left the chat room it should write XXXX has left the chat room and his/her name should be omitted from the online users Box.
Thank you.

Recommended Answers

You could simply create a function in the ajax that, when a user clicks "Log Off", sends a general message to the chat daemon letting users know that xxxx has logged off and updates their online status via php call.

Sorry for no code, but I have absolutely NO …

Jump to Post

All 2 Replies

You could simply create a function in the ajax that, when a user clicks "Log Off", sends a general message to the chat daemon letting users know that xxxx has logged off and updates their online status via php call.

Sorry for no code, but I have absolutely NO idea what kind of code you've written, so I threw out a general answer to a general question. Hope this helps. ;)

I appreciate your help..!!and the idea is good one..Thanks..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.