Skip to Content
Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development
book

Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development

by Peter Lubbers, Brian Albers, Frank Salim
August 2010
Intermediate to advanced
304 pages
6h 44m
English
Apress
Content preview from Pro HTML5 Programming: Powerful APIs for Richer Internet Application Development

Chapter 5. Using the Communication APIs

In this chapter, we'll explore what you can do with two of the important building blocks for real-time, cross-origin communication: Cross Document Messaging and XMLHttpRequest Level 2 and we'll show you how they can be used to create compelling applications. Both of these building blocks add new communication options to HTML5 applications and allow applications served from different domains to safely communicate with each other.

First, we'll discuss the postMessage API and the origin security concept—two key elements of HTML5 communication—and then we'll show you how the postMessage API can be used to communicate between iframes, tabs, and windows.

Next, we'll discuss XMLHttpRequest Level 2—an improved version ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Using the HTML5 Filesystem API

Using the HTML5 Filesystem API

Eric Bidelman
HTML5 Geolocation

HTML5 Geolocation

Anthony T. Holdener
HTML5 Hacks

HTML5 Hacks

Jesse Cravens, Jeff Burtoft
Jump Start HTML5

Jump Start HTML5

Tiffany B Brown, Kerry Butters, Sandeep Panda

Publisher Resources

ISBN: 9781430227908Purchase book