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
Solved

Web application messaging

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

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 109

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Magento: different theme for Pc and for mobile devices 4 29
PHP Echo with auto submit 8 28
Asp in server side with Mssql Server 7 4 26
Inserting data into database 10 34
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
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)
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…

791 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