Adobe Air - window.nativeWindow 未定义
我有一个 Adobe Air 应用程序,可以从菜单托盘中打开一个窗口。 html 内容有一个 javascript 代码,在加载时执行警报(window.nativeWindow)。
- 它适用于嵌入的 html 静态文件,
- 它不适用于名为文件的 JSP,
我已正确包含 AIRAliases.js。 nativeWindow 有限制吗?
我的目标是:
- 打开带有表单的 JSP 文件
- 将表单提交给自身
- 如果可以,则隐藏 nativeWindow
但似乎 nativeWindow 未定义。而 window.close() 什么也没做
I have an Adobe Air Application opening a Window from menu tray. The html content have a javascript code doing alert(window.nativeWindow) on load.
- It works fine with an embeded html static file
- It do not works with a JSP called file
I have correctly included AIRAliases.js. Is there restriction about nativeWindow ?
My goal is to:
- Open a JSP file with a Form
- Submitting the Form to itself
- If ok, hiding the nativeWindow
But it seems nativeWindow is undefined. And window.close() did nothing
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实上,这是一个沙盒安全限制。
唯一的方法是:
AdobeAIR API的安全章节中有完整的解释
Well in fact it is a SandBox security restrcition.
The only way to do so is to:
There is a full explanation in the security chapter of AdobeAIR API