This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How To Know Other User Comes Online In Chat Application Like Gmail  RSS feed

 
saleem basha
Greenhorn
Posts: 5
C++ Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Eveybody,

I am new to developing chat application using servlets,jms.I have one doubt in developing this web chat app that is when user logged into application i want to show list of users who are online.So,please tell me how to show list of online users in contact list.

Thanks In Advance........
 
Jayesh A Lalwani
Rancher
Posts: 2762
32
Eclipse IDE Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need Java script running on the browser that periodically polls the server for a list of users logged in. You can either do this with AJAX, or you can continuously refresh an IFrame that shows the lists of users.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!