2012-07-31 37 views
0

我正在使用sencha touch開發黑莓webworks應用程序。並且只有在構建成白色屏幕之後。在黑莓模擬器上使用sencha運行黑莓時獲得白色屏幕Touch2

這裏是我的代碼:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
    "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    <meta name="viewport" id="viewport" content="height=device-height,width=device- 
    width,user-scalable=no" /> 
    <title>Insert title here</title> 
    <script type="text/javascript" src="www/sencha-touch-all.js"></script> 
    <script type="text/javascript" src="www/sencha-touch.js"></script> 
<script type="text/javascript"> 
new Ext.Application({ 
launch: function() { 
    new Ext.Panel({ 
     fullscreen: true, 
     dockedItems: [{xtype:'toolbar', title:'My First App'}], 
     layout: 'fit', 
     styleHtmlContent: true, 
     html: '<h2>Hello World!</h2>I did it!' 
    }); 
} 
    </script> 
    </head> 
<body> 
<p>Hello World</p> 
</body> 
</html> 

任何人都可以這樣做呢?請幫幫我。

+0

其他辦法,我也試過是:我創建了一個應用程序的煎茶其做工精細的煎茶項目。我使用命令(sencha應用程序構建包)打包它。之後,我把所有的包文件放在黑莓webworks應用程序的www文件夾中。當我運行這個使用漣漪模擬器我只有白色的屏幕。 – user1489812 2012-07-31 12:39:44

回答

1

包括其中之一:)煎茶 - 觸摸all.js是煎茶,touch.js的調試版本

和第二看起來你已經錯過了包括CSS文件。

乾杯,奧列格