Directory

← Back

PostMessageAddon

Enables safe cross-origin communication using HTML5 window.postMessage in your Vaadin Application.

Author

Rating

Popularity

<100

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 app 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. Extends BrowserFrame component from core Vaadin Framework.

PostMessageWindowUtils - for opening a location in another browser window/tab and posting messages into them. NOTE: this is not supported by any IE version. Not possible currently to directly listen to messages from opened windows, but the PostMessageReceiver can be used for this.

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Fixed IE8 js bugs preventing IFrame and Receiver from working.

Released
2013-02-15
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.0+
Browser
Internet Explorer
Firefox
Opera
Safari
Google Chrome
Internet Explorer
iOS Browser
Android Browser

PostMessageAddon - Vaadin Add-on Directory

Enables safe cross-origin communication using HTML5 window.postMessage in your Vaadin Application. PostMessageAddon - Vaadin Add-on Directory
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 app 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. Extends BrowserFrame component from core Vaadin Framework. PostMessageWindowUtils - for opening a location in another browser window/tab and posting messages into them. NOTE: this is not supported by any IE version. Not possible currently to directly listen to messages from opened windows, but the PostMessageReceiver can be used for this.
Issue Tracker
Discussion Forum
Source Code
Browser compatibility
HTML5 documentation
Online Demo

PostMessageAddon version 1.0.1
Fixed IE8 js bugs preventing IFrame and Receiver from working.

Online