【问题标题】:iFrame with Phonegap and JQuery Mobile escaping the APP to the browseriFrame 与 Phonegap 和 JQuery Mobile 将 APP 转义到浏览器
【发布时间】:2012-01-18 19:37:56
【问题描述】:
<div data-role="content">    
    <iframe src="http://drumbeat.pro/" frameborder="0" width="99%" height="100%" align="middle"></iframe>
    <form id="loginForm">
    <div data-role="fieldcontain" class="ui-hide-label">
        <label for="username">Username:</label>
        <input type="text" name="username" id="username" value="" placeholder="Username" />
    </div>

    <div data-role="fieldcontain" class="ui-hide-label">
        <label for="password">Password:</label>
        <input type="password" name="password" id="password" value="" placeholder="Password" />
    </div>

    <input type="submit" value="Login" id="submitButton">
    </form>

</div>

我试图在我的 phonegap 应用程序中显示 iFrame,但我点击的每个链接都会进入浏览器,我该如何避免这种情况?请不要建议这个答案(http://denrobapps.com/2010/12/phonegap-and-iframes/),因为此处规定的 Phonegap 已过时

【问题讨论】:

    标签: eclipse iframe jquery-mobile cordova mobile-application


    【解决方案1】:

    将外部链接的域添加到 Xcode 中 PhoneGap.plist 中的 ExternalHosts 条目(假设您正在使用 iOS 应用程序)。

    http://wiki.phonegap.com/

    .

    Site-note: "drumbeat.pro" -> 该网站提供什么类型的服务/产品?我是鼓手...

    【讨论】:

    • drumbeat 是某种“多媒体代理”,继续看看吧,我目前正在为所有平台开发这个应用程序
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-29
    • 2013-01-13
    • 1970-01-01
    • 1970-01-01
    • 2013-03-19
    • 2012-10-16
    相关资源
    最近更新 更多