Solved

Web application messaging

Posted on 2013-01-28
2
186 Views
Last Modified: 2013-02-12
Hi,

Please see details below -

We have a web based module that will allow the master admin to send a one-way chat to users. Users will be able to see the chat/messages in a web based browser window that will pop-up whenever a new message is sent.

The window will display the posts from the most recent at the top to the older ones on the bottom.  Messages will only appear in the chat window for 24 hours, messages older than this will not be seen.
The page will auto refresh every 2 minutes or so to get the most recent updates/messages.

If a new message is posted, a sound will go on and the window will pop up to the front of the user’s desktop. If an attachment is uploaded by the admin, a hyperlink will be displayed for the user to download it.

We would like to know if the following are possible with a web application -
a) In a minimized state, can the web browser window be made to pop-up when a new message is received by the user (logged in)?
b) For users who do not have speakers or sound turned on, Can any kind of special visual effects be made like flashing the window header bar, title etc to notify them that a new meesage has come?
c) Is there a solution available which will play sound in Firefox browser (we have tried the audio tag in HTML 5 which works only in Chrome and IE9)?

If any of these are possible, immediate responses would be appreciated.

Thanks
0
Comment
Question by:Web_Sight
  • 2
2 Comments
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 38826410
I think this is all possible if you can get the client to install something on the client computer that will repeatedly poll your server.  Example: An RSS reader.  You may be able to cause repeated polling with something like jQuery, too.  Repeated polling is a necessity in this design because the server cannot initiate communication with the client; it can only respond to a request.  That is a law of the HTTP protocol.

The nature of client-server systems is really very simple: Clients make requests and servers make responses.  Each request is atomic, complete and stateless, and each response is complete and usually instantaneous.  And that's it -- the server sends the response, disconnects, and waits for the next request.

As a result of the client-server RESTful design, there is no such thing as a logged-in client.  The client sends cookies, and the server can use the content of these cookies to make different decisions about how to trust and treat the communications with that client, but after each request, the server is still disconnected, and the client is still stateless.
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 38879639
You asked if things were possible.  What was wrong with the answer?  Why did you give a bad grade?
http://www.experts-exchange.com/help/viewHelpPage.jsp?helpPageID=26

Please tell me what you were expecting and why you didn't pursue the question if you were not satisfied.  Thanks, ~Ray
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now