Solved

How to send data from server side to webbrowser without client request?

Posted on 2009-04-02
3
820 Views
Last Modified: 2013-11-24
in web applications, some cases we want to send some data from server side to client side (web browser) needn't the client send request. ButI can't know how to do?.

Example, I develop a web based chat application. in that, I have 2 persons A, B. A send data to B via server side, and then server side send the data to A. Assume that, A connected Server side before.

P/S: By the way, could you show me ideas to build a web based chat instead of.

Thank you so much !
0
Comment
Question by:nminhquy
3 Comments
 
LVL 26

Expert Comment

by:ksivananth
Comment Utility
I don't think you can do that unless you have an applet!

if you have applet, then you open a socket conn from applet and do the back/forth communication.

other wise, you need to periodically make javascript to check the server to get any update.
0
 

Author Comment

by:nminhquy
Comment Utility
Thank you for your reply.
Do you know, how gmail web chat do ?

Gmail web chat is a good example for this. as you know, when our partner types some chars, the web client show : "xxx typing....".

It's not good to use javascript to check periodically.
0
 
LVL 3

Accepted Solution

by:
kingsob earned 500 total points
Comment Utility
u could use AJAX, and have the client check the server on some fixed interval (how gmail works).. but there is no way for the server to just send data to a client, without the client 1st requesting the information
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

763 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

8 Experts available now in Live!

Get 1:1 Help Now