Re: two way js communications between parent and iframe content
Posted by
DL on
Jan 10, 2011; 10:33pm
URL: https://discuss.orbeon.com/two-way-js-communications-between-parent-and-iframe-content-tp3192702p3208144.html
I've just found that this exception arises from calling the orbeon xform from a remote (Apache) server ..
this seems to be a cross-domain security problem with javascript
if I run the test form on quercus / Tomcat (having set quercus.xml and orbeon.xml context files in Tomcat 6.0\conf\Catalina\localhost\) I can now embed the xform in a parent iframe without seeing the exception error.
but I still need to figure out the protocol for targeting the javascript event handler (parent <--> child).
...
Searching around to solve this problem I found this js library which might be useful for cross-domain messaging ..
http://easyXDM.netthis library would need to be placed in the consumer and the provider (orbeon).
https://github.com/oyvindkinsey/easyXDM#readme