2015-01-08 28 views
0

尝试使用框架和iframe。针对iframe的Google Web App出错

在本地主机:frameset.html:

<iframe src=a.html name="a" width="200" height="200" align="right"></iframe> 
<iframe src=b.html name="b" width="200" height="200" align="left"></iframe> 

b.html有打开的谷歌Web应用程序, https://script.google.com/macros/s/a-web-app-id/dev,在弹出的链接(我使用iframe,但是应用程序脚本网络应用程序只能在自己的选项卡/窗口中运行)。

的网络应用程序,运行在IFRAME模式的htmlservice具有此链接:

<a target='a' 
href="https://script.google.com/d/some-script-id/edit?usp=drive_web"> 
where does this same origin link open?</a> 

而不是链接在框架中的frameset.html被打开时,它在每次一个新的标签将其打开被点击(所以N次点击,N个标签打开)。当我设置b.html以打开一个本地弹出窗口(c.html)时,上面有同样的链接,但它工作正常。

控制台日志中的应用程序脚本弹出:在IFRAME沙盒模式下运行时为所有燃气的webapps下HTTPS运行

https://script.google.com/macros/s/a-web-app-id/dev 
Failed to load resource: net::ERR_CACHE_MISS 

https://some_string-script.googleusercontent.com/userCodeAppPanel 
Failed to load resource: net::ERR_CACHE_MISS 

回答