I\'m trying to make a trivial postMessage
example work...
Create a proxy page on the same host as launcher. Proxy page has an iframe
with source set to remote page. Cross-origin postMessage will now work in IE10 like so:
window.parent.postMessage
to pass data to proxy page. As this uses iframes, it's supported by IE10window.opener.postMessage
to pass data back to launcher page. As this is on same domain - there are no cross-origin issues. It can also directly call global methods on the launcher page if you don't want to use postMessage - eg. window.opener.someMethod(data)
Launcher page at http://example.com/launcher.htm
Test launcher page
Proxy page at http://example.com/proxy.htm
Proxy page
Remote page at http://example.net/remote.htm
Remote page
Remote page