W3C home > Mailing lists > Public > public-html@w3.org > February 2008

Re: Re[4]: server's initiative

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 07 Feb 2008 13:19:55 +0100
To: "Dmitry Turin" <html60@narod.ru>, public-html@w3.org
Message-ID: <op.t55lvh0b64w2qv@annevk-t60.oslo.opera.com>

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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:52 UTC