2013-03-28 31 views
0

我已經建立了一個使用phonegap 2.0的phonegap應用程序PhoneGap建立Android選擇

Works太棒了!

更新時的PhoneGap 2.2我失去的下拉菜單的功能

她是我的下拉菜單

<select name="ctl00$ContentPlaceHolder2$ddlAgent" onchange="javascript:setTimeout('__doPostBack(\'ctl00$ContentPlaceHolder2$ddlAgent\',\'\')', 0)" id="ctl00_ContentPlaceHolder2_ddlAgent" style="width:90%;text-align:center;"> 
<option selected="selected" value="1">Option1</option> 
<option selected="selected" value="1">Option1</option> 
<option selected="selected" value="1">Option1</option> 

</select> 

我不認爲這SA配置問題中的一個例子,它是一個問題與最新版本的phonegap?或者它在我的代碼?這裏是一個開始......這是我的頭

<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum- scale=1.0"/> 
<link rel="apple-touch-icon" sizes="114x114" href="images/splash/splash-icon.png"> 
<link rel="apple-touch-startup-image" href="images/splash/splash-screen.png"  media="screen and (max-device-width: 320px)" /> 
<link rel="apple-touch-startup-image" href="images/splash/[email protected]" media="  (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)" /> 
<meta name="apple-mobile-web-app-capable" content="yes"/> 
<title>DCC On-The-Go</title> 

<link href="style/style.css" rel="stylesheet" type="text/css"> 
<link href="style/retina.css" media="only screen and (-webkit-min-device-pixel-ratio:  2)" rel="stylesheet" /> 
<link href="style/buttons.css" rel="stylesheet" type="text/css"> 
<link href="style/photoswipe.css" rel="stylesheet" type="text/css"> 

<script src="scripts/jquery.js"></script> 
<script src="scripts/easing.js"></script> 
<script src="scripts/tweetable.js"></script> 
<script src="scripts/roundabout.js"></script> 
<script src="scripts/contact.js"></script> 
<script src="scripts/swipe.js"></script> 
<script src="scripts/klass.min.js"></script> 
<script src="scripts/photoswipe.js"></script> 
<script src="scripts/retina.js"></script> 
<script src="scripts/custom.js"></script> 



</head> 

我也打算在2.3嘗試和2.1現在來測試其他版本...

期待着人民的思想,投入和討論上Phonegap 2.2和這個問題...

回答

0

它在某個時候用config.xml進行編譯,build.phonegap.com一旦使用它就不允許在沒有config.xml的情況下構建...新建並離開了!

感謝

0

我會建議檢查你的html,css和js。 Phonegap不應該干擾簡單的功能,如下拉菜單。另外,你甚至不會在你的html頭文件中包含cordova.js。

+0

感謝您的反饋,這是我們在childbrowser加載網頁,因此它不是「編譯」這樣與PhoneGap的。即使添加了cordova.js文件,我不相信它沒有效果,因爲該文件不在注入到phonegap構建中的文件組中。感謝您的意見,問候,亨利 –