Tech or Treat! Write an article about your scariest tech disaster to win gadgets!Learn more

x
?
Solved

Web application messaging

Posted on 2013-01-28
2
Medium Priority
?
200 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 111

Accepted Solution

by:
Ray Paseur earned 1500 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 111

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
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 code hide show and toggles. 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…
Suggested Courses

647 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