有谁知道在调整浏览器跨域大小时是否需要“name.html”easyxdm 文件,如果需要,您在哪里告诉 easyxdm 查找它?
我目前在 iFrame 中从另一个网站提取预订表格,但是我看不到任何引用 name.html 的示例,所以我担心我没有正确设置它。
该页面似乎确实有效,但我只是想确保我已经涵盖了所有内容。
我正在使用的演示在这里:测试页面从另一个域的开发站点提取数据。
这是我在消费网站上的easyxdm代码,是否应该在这个javascript中以某种方式指定?
<div id="container" style="width: 100%;"><div id="loadingmsg" style="color:white; font-size: 12pt;">Loading...</div></div>
<script type="text/javascript">
new easyXDM.Socket({
remote: "http://dev.ultimatetripstore.com/Book/Arrival-External?pid=1&SkinSrc=/portals/_default/skins/_default/no%20skin&ContainerSrc=/portals/_default/containers/_default/no%20container&bgcolor=000&fontcolor=fff&themecolor=d80c8c&hcolor=ffffff",
swf: "http://dev.ultimatetripstore.com/easyxdm.swf",
container: document.getElementById("container"),
onMessage: function(message, origin){
this.container.getElementsByTagName("iframe")[0].style.height = message + "px";
this.container.getElementsByTagName("iframe")[0].style.width = "100%";
this.container.getElementsByTagName("iframe")[0].frameborder = 0;
this.container.getElementsByTagName("iframe")[0].style.border = "0px solid red";
this.container.getElementsByTagName("iframe")[0].scrolling="no";
}
});
</script>