Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
This course shows how to communicate between web pages, both within a single domain and across one or more domains, using the HTML5 Messaging API. Author Bill Weinman reviews security and the same origin policy, details cross-origin scripting techniques, and explores examples of cross-document messaging. The course describes how to register and send messages to listeners and handle errors.
If you have access to the exercise files for this course, you can use them to follow along with the lessons as I present them. In order to follow along, you'll need to upload these files to a server and edit the files on the server instead of on your workstation. The technology presented in this course will not work without a web server. The examples in this course count on documents being served from different origins, so you must be able to set up your server with at least two domains using the same set of files. It's a good idea to have a text editor capable of editing over SFTP on a server.
I use the excellent BBEdit or its free version, TextWrangler, on the Mac. On the PC I use Notepad++, which is also capable of editing on the server over SFTP. Here in the exercise folders you'll find a folder for the various chapters in the tutorial. The files inside the folders are generally organized by chapter, and many have start and done files as a beginning and ending place for that file. You'll want to start with a working copy of the start file, or a working copy of the file from the previous movie, and work with the copy so that you can start over again with a fresh copy if you need to.
In the CSS folder, you'll find a simple CSS file that is used for all of the examples. Now I'm just going to page through this for you for the benefit of those who're typing this in. If you do not have access to these exercise files you may still follow along and create files of your own.
There are currently no FAQs about HTML5: Messaging and Communications in Depth.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.