在iframe中访问phonegap [英] Accessing phonegap inside an iframe

查看:70
本文介绍了在iframe中访问phonegap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PhoneGap和PhoneGap Build中使用iframe进行构建.是否可以访问PhoneGap功能,例如iframe中的摄像头功能?

I am using iframe within PhoneGap and PhoneGap Build for building. Is it possible to access PhoneGap functionality e.g. the camera function inside the iframe?

谢谢!

推荐答案

  • 历史记录无法正常运行. history.back()和 history.forward()不起作用,我们必须对其进行破解(包含历史记录) 状态)(使其有效)(排序).我们能够绕过它 将usePolling属性设置为true.

    • History does not work the way it should. history.back() and history.forward() don't work and we have to hack it (with history states) to make it work (sorta). We were able to get around it by setting the usePolling property to true.

      主窗口和iframe窗口之间的冲突 一切(URL,事件等)

      Conflicts between the main window and the iframe window for everything (URLs, events, etc)

      关于在文本框中选择文本的功能存在问题 iframe内容;我相信Anis找到了解决方案/解决方法.

      There were an issue regarding the ability to select text in the iframe content; I believe Anis found a solution / workaround for it.

      不能使用XmlHttpRequests设置文档数据(它弄乱了 CSS/js等).

      Can't use XmlHttpRequests to set document data (it messes up with CSS/js etc).

      请继续阅读: https://github.com/phonegap/phonegap/wiki/iFrame -用法

      这篇关于在iframe中访问phonegap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆