Read about window.postMessage, HTML5 standard specification
window.postMessage enables you to do cross-origin communication safely. This add-on has three server side components that enable your Vaadin application to do "Post Messaging" easily.
Currently the only possible message type is String, but support for more types is planned.
PostMessageReceiver - for receiving and responding to messages, ie. when your application is embedded in another application inside an iframe or is opened in a popup window.
PostMessageIFrame - when you need to embed and communicate with another app or page. Extends BrowserFrame component from core Vaadin Framework.
PostMessageWindow - for opening a location in another browser window/tab and posting/receiving messages to/from them.
The project is licensed under the Apache License, Version 2.0.
html5 window.postMessage compatibility, Vaadin 7 supported browsers
http://pekka.app.fi/postmessage-demo/
- refactored demos
- added support for posting & receiving messages to & from popup windows with PostMessageWindowExtension
- added support for PostMessageReceiver to send messages to window.opener
- Support other message types than String, like data objects File, Blob, FileList and ArrayBuffer.
- Investigate IE support for popup windows using a workaround