js 垮域传值

时间:2014-09-29 10:04:24
【文件属性】:
文件名称:js 垮域传值
文件大小:18KB
文件格式:GZ
更新时间:2014-09-29 10:04:24
js 垮域传值 最近搞一个需求有关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页面),传值也依法泡制。代码如下
【文件预览】:
colorhook-crossdomain-d97699e
----window-domain()
--------host.html(2KB)
--------iframe.html(1KB)
----fragment-identitier-messaging()
--------host.html(3KB)
--------iframe.html(2KB)
----window-postMessage()
--------host.html(2KB)
--------iframe.html(1KB)
----flash-urlloader()
--------connection.swf(2KB)
--------index.html(1KB)
--------crossdomain.xml(101B)
--------resource.php(512B)
----window-name()
--------dojox-io-windowName.html(1KB)
--------simple-example.html(2KB)
--------blank.html(72B)
--------data.html(291B)
----README.textile(3KB)
----flash-localconnection()
--------host.html(2KB)
--------LocalConnector.swf(2KB)
--------LocalConnector.js(2KB)
--------iframe.html(1KB)
--------LocalConnector.as(2KB)
----access-control()
--------resouce.php(617B)
--------index.html(989B)
----jsonp()
--------jsonp.php(563B)
--------index.html(1KB)
----cross-frame()
--------host.html(2KB)
--------cross-frame.js(5KB)
--------iframe.html(1KB)
--------proxy.html(2KB)
----server-proxy()
--------proxy.php(2KB)
--------get.html(834B)
--------post.html(861B)
--------resource.php(378B)
--------resource.txt(15B)
----YQL()
--------weather.html(2KB)

网友评论

  • 东西还不错,可惜不是我想要的!