【问题标题】:issue loading mobile widgets with dojo mobile and phonegap使用 dojo mobile 和 phonegap 加载移动小部件的问题
【发布时间】:2012-04-25 23:35:52
【问题描述】:

我使用 phonegap 和 dojo mobile html5 开发了一个应该在 android 设备上运行的表单,因此页面运行没有问题,但是当我在移动设备上测试页面时遇到了一些错误。

<div id="settings" dojoType="dojox.mobile.View" selected="true">

    <!-- a sample heading -->
    <h1 dojoType="dojox.mobile.Heading">Authentification</h1>
    <form id="loginForm">
        <div class="field-title">Login</div>
        <div class="fieldset">
            <div class="field-row">
                <span>Username*</span><input dojoType="dojox.mobile.app.TextBox" />
            </div>
            <div class="field-row">
                <span>Password*</span> <input type=password name="pass"
                    dojoType="dojox.mobile.app.TextBox"> </input>

            </div>
            <a class="link" href="#">New account</a><a class="link"href="#">Forgot your password?</a>
            <div style="text-align: center;">

            <button dojotype="dojox.mobile.Button" class="mblButton greyBtn baseBtn normalBtn">Connect</button>
                <button id="resetBtn" type=reset dojotype="dojox.mobile.Button"
                    class="mblButton greyBtn baseBtn normalBtn">Reset</button>
            </div>
    </form>
</div>

04-26 00:11:28.909: D/PhoneGapLog(3029): 加载失败 dojo/../dojox/mobile/app/TextBox.js 出现错误:错误:无法加载 'dojox.mobile.app._Widget';最后一次尝试 '../dojox/mobile/app/_Widget.js'

04-26 00:11:28.909: D/PhoneGapLog(3029): : Line -2167 : 加载失败 dojo/../dojox/mobile/app/TextBox.js 出现错误:错误:无法加载 'dojox.mobile.app._Widget';最后尝试'../dojox/mobile/app/_Widget.js

04-26 00:11:28.909:E/Web 控制台(3029):加载失败 dojo/../dojox/mobile/app/TextBox.js 出现错误:错误:无法加载 'dojox.mobile.app._Widget';最后一次尝试 '../dojox/mobile/app/_Widget.js' 在:-2167

【问题讨论】:

    标签: html cordova dojo


    【解决方案1】:

    你遇到了这个问题:

    https://code.google.com/p/android/issues/detail?id=24067

    最好的办法是在构建 Android 应用程序时将 Dojo Mobile 完全构建到一个文件中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-27
      • 2011-11-06
      • 1970-01-01
      • 2014-01-01
      • 2012-08-15
      相关资源
      最近更新 更多