Solved

Web application messaging

Posted on 2013-01-28
2
188 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
OverviewThis article demonstrates a simple search form using AJAX. The purpose of the article is to demonstrate how to use the same code to render a page and javascript (JQuery) and AJAX to make subsequent calls to refine the results. The princip…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

914 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

20 Experts available now in Live!

Get 1:1 Help Now