Tuesday, February 19, 2013

HTML5 Server-Sent-Events: How To React On Server Requests With JavaScript

serversentevents-w550 You certainly know the XMLHttpRequest object, with which it is possible to communicate with a web server from inside an HTML document and have it updated without the need for reloading the page. Now, with the newly introduced server sent event, part of HTML5, we can even react to requests from the server side without the need for a reload. This way we can keep page contents simultaneously updated. This proves useful in several cases, e. g. regarding your stock of products, that is probable to change every second.
Source : internetwebsitedesign[dot]biz

0 comments:

Post a Comment