[whatwg] event-source prototype and questions
mdierken at hotmail.com
Tue Oct 25 22:03:19 PDT 2005
I've put together a quick prototype to experiment with the event-source
design implications based on the WHAT-WG Web App spec here:
This does not follow exactly the WebApp spec - rather, I'm making
suggestions about alternate approaches.
These are the points I'd like to start a discussion about:
* What markup is used within a page?
* How are incoming messages routed to script handlers?
* What event stream format is used?
* How are resources/URIs used?
of messages and dispatches them to handlers within the page.
I'd be very happy if some folks could take a look at the comments and
questions on that page as well as the source of the prototype.
object by name without having to declare that object as a parameter to that
I'd like to be able to write this:
<div event-src="http://example.org/stock-stream" onMessage="handleStocks()"
But instead I had to write this:
I tried using closures in several different ways and couldn't get it to
work. Any help would be appreciated - not necessarily to make the prototype
better, but just for my own education.
More information about the whatwg