var remoteHOST = 'http://www.skiresort.de'; window.onload = function(){ /** * When the window is finished loading start setting up the transport */ transport = new easyXDM.Socket(/** The configuration */{ /** * Register the url to hash.html, this must be an absolute path * or a path relative to the root. * @field */ local: "iFramehelper.html", /** * Register the url to the remote interface * @field */ props: { style:{width:"500px"}, scrolling: "no" }, remote: remoteHOST + "/intermediary.html?page=" + encodeURIComponent(IFrameTarget), remoteHelper: remoteHOST + "/iFramehelper.html", /** * Register the DOMElement that the generated IFrame should be inserted into */ container: document.getElementById("skiresort"), onMessage: function(message, origin){ newHeight = parseInt(message); this.container.getElementsByTagName("iframe")[0].style.height = newHeight + "px"; } }); };