2012-04-25 78 views
0

我開發了一個應該使用phonegap和dojo mobile html5在android設備上運行的表單,因此頁面運行時沒有問題,但是當我在移動設備上測試頁面時,錯誤。使用dojo mobile和phonegap加載移動小部件的問題

<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): failed loading dojo/../dojox/mobile/app/TextBox.js with error: Error: Could not load 'dojox.mobile.app._Widget'; last tried '../dojox/mobile/app/_Widget.js'

04-26 00:11:28.909: D/PhoneGapLog(3029): : Line -2167 : failed loading dojo/../dojox/mobile/app/TextBox.js with error: Error: Could not load 'dojox.mobile.app._Widget'; last tried '../dojox/mobile/app/_Widget.js

04-26 00:11:28.909: E/Web Console(3029): failed loading dojo/../dojox/mobile/app/TextBox.js with error: Error: Could not load 'dojox.mobile.app._Widget'; last tried '../dojox/mobile/app/_Widget.js' at :-2167

回答