Re: Re[4]: server's initiative

On Thu, 07 Feb 2008 13:00:00 +0100, Dmitry Turin <html60@narod.ru> wrote:
> By the way, can you write this code
> (because curiosity, i'm not JS-programmer) ?

I'm not really sure what you mean. The basic idea is that you have an HTML  
page that includes something like the following

   <event-source
     src="http://example.org/events.cgi"
     onmessage="doSomething(event)">

which will issue a request to http://example.org/events.cgi which returns  
an event stream that the user agent interprets. The user agent will then  
dispatch those events on the <event-source> element (or possibly somewhere  
else, if the Target field in the event stream was used).


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Thursday, 7 February 2008 12:16:35 UTC