HTML and CSS Reference
In-Depth Information
Server-sent events are a perfect tool if you want to re-
ceive a series of messages from the web server. But the
communication is completely one-sided. There's no way
for the browser to respond, or to enter into a more com-
plex dialogue.
If you're creating a web application where the browser
and the web server need to have a serious conversation,
your best bet (without adopting Flash) is to use the
XMLHttpRequest object. Depending on the sort of ap-
plication you're building, this approach may work fine.
However, there are stumbling blocks aplenty. First, the
XMLHttpRequest object doesn't work well if you need to
send multiple messages back and forth very quickly (like
Search WWH ::

Custom Search