Realtime client content update

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I've been looking for weeks on this without much luck so I'm ready to give
up and just use Powerpoint online broadcast. I want to deliver a
presentation via the web but only to one or two viewers. I was hoping to
broadcast (narrowcast I suppose) simple html or dhtml pages which change at
my control. I guess it involves a kind of server push with commands to
update pages from my PC. The important thing is I want to initiate the page
update not have it happen automatically according to a predetermined time

Can anyone help please?


Re: Realtime client content update

Terry Hayes wrote:
Quoted text here. Click to load it

have a look at

Basically, you use javascript and DOM calls to create, and add to the
document header a script element, set the SRC attribute to the URL at
which a sevlet will provide a stream of Content-type:text/javascript
which contains the javascript code to execute, and, importantly, the
code to remove the script from the header.

You can do this in a setInterval() timer, and have it poll the server to
get new info from a servlet and update the browser document.

So the *servlet* decides what to do and when. IT sends the javascript to
dynamically change the document.

I use this in one of my projects. The client using the browser sees the
updates arriving as the servlet finds them. It appears to the casual
user as interactive as a windows application.

Site Timeline