js 垮域传值

上传者: huping112003 | 上传时间: 2022-05-10 13:27:57 | 文件大小: 18KB | 文件类型: GZ
最近搞一个需求有关js跨域弹窗传值,问题是这样的:有两个网站分别为www.b.com、www.a.com 在B网站B.htm嵌入A网站的A.htm页面,在A.htm页面要从弹出的AA.htm页面获取一个值(产生跨域问题,AA.htm页面要弹出到B网站)。解决方法是创建一个不可见iframe,他的src为对方网站一个页面(BB.htm),在这个页面做弹出AA.htm页面),传值也依法泡制。代码如下

文件下载

资源详情

[{"title":"( 34 个子文件 18KB ) js 垮域传值","children":[{"title":"colorhook-crossdomain-d97699e","children":[{"title":"window-domain","children":[{"title":"host.html <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"iframe.html <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"fragment-identitier-messaging","children":[{"title":"host.html <span style='color:#111;'> 2.86KB </span>","children":null,"spread":false},{"title":"iframe.html <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false}],"spread":true},{"title":"window-postMessage","children":[{"title":"host.html <span style='color:#111;'> 1.91KB </span>","children":null,"spread":false},{"title":"iframe.html <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false}],"spread":true},{"title":"flash-urlloader","children":[{"title":"connection.swf <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"crossdomain.xml <span style='color:#111;'> 101B </span>","children":null,"spread":false},{"title":"resource.php <span style='color:#111;'> 512B </span>","children":null,"spread":false}],"spread":true},{"title":"window-name","children":[{"title":"dojox-io-windowName.html <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"simple-example.html <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"blank.html <span style='color:#111;'> 72B </span>","children":null,"spread":false},{"title":"data.html <span style='color:#111;'> 291B </span>","children":null,"spread":false}],"spread":true},{"title":"README.textile <span style='color:#111;'> 2.72KB </span>","children":null,"spread":false},{"title":"flash-localconnection","children":[{"title":"host.html <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false},{"title":"LocalConnector.swf <span style='color:#111;'> 2.42KB </span>","children":null,"spread":false},{"title":"LocalConnector.js <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false},{"title":"iframe.html <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"LocalConnector.as <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false}],"spread":true},{"title":"access-control","children":[{"title":"resouce.php <span style='color:#111;'> 617B </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 989B </span>","children":null,"spread":false}],"spread":true},{"title":"jsonp","children":[{"title":"jsonp.php <span style='color:#111;'> 563B </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"cross-frame","children":[{"title":"host.html <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"cross-frame.js <span style='color:#111;'> 5.33KB </span>","children":null,"spread":false},{"title":"iframe.html <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"proxy.html <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false}],"spread":true},{"title":"server-proxy","children":[{"title":"proxy.php <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false},{"title":"get.html <span style='color:#111;'> 834B </span>","children":null,"spread":false},{"title":"post.html <span style='color:#111;'> 861B </span>","children":null,"spread":false},{"title":"resource.php <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"resource.txt <span style='color:#111;'> 15B </span>","children":null,"spread":false}],"spread":true},{"title":"YQL","children":[{"title":"weather.html <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false}],"spread":true}],"spread":false}],"spread":true}]

评论信息

  • liuyong0227 :
    东西还不错,可惜不是我想要的!
    2013-05-23

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明