Hi,
It might be a silly question but I have almost no experience with JavaScript and I could not find any examples of communication across three domains.
What I have is domain A that returns iframe from domain B and domain B returns iframe from domain C.
Domain A exposes DA.resize(i,j) via easyXDM already, so I can easily access this from domain B. Now I'd like to have same action from domain C (so that the top most iframe from domain A is resized).
The exposed DA thingie looks something like this:
var DA = (function () {
var DA = DA || {};
var rpc;
DA.init = function (options) {
rpc = new easyXDM.Rpc({}, {
remote:{
resize:{},
init:{},
},
});
rpc.init();
DA.resize();
};
DA.resize = function (width, height) {
var w = width || "100%";
var h = height || (document.body.offsetHeight + 40);
rpc.resize(h, w);
};
}
I'd appreciate if anyone could direct me to some examples.