I start learning sencha touch 2 ,but i have the same problem in all the tutorials that i had try it .
i'm using eclipse + phonegap .My problem is I still get a white screen.there is my index.html:
HTML Code:
<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=320; user-scalable=no" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>PhoneGap Demo with Sencha Touch</title>
<link rel="stylesheet" href="sencha/resources/css/sencha-touch.css" type="text/css">
<script type="text/javascript" src="sencha/sencha-touch.js"></script>
<script type="text/javascript" charset="utf-8" src="phonegap-1.4.1.js"></script>
<script type="text/javascript" charset="utf-8" src="main.js"></script>
<script type="text/javascript" charset="utf-8" src="phonegapdemo-w-sencha.js"></script>
<script type="text/javascript" src="ch_01.js.js"></script>
</head>
<body></body>
</html>
and that's what i have in logCat:
06-26 22:50:54.718: E/Web Console(551): Uncaught TypeError: undefined is not a function at file:///android_asset/www/phonegapdemo-w-sencha.js:251
i think the error is in this part in the phonegapdemo-w-sencha.js file:
Code:
new Ext.Application({
launch : function() {
var panel = new Ext.Panel(cfg);
}
});
and this the ch_01.js file:
Code:
var helloWorld = new Ext.Application({
launch: function() {
this.tabs = new Ext.TabPanel({
fullscreen: true,
dockedItems: [{xtype:'toolbar', title:'Hello World'}],
tabBar: {
ui: 'light',
layout: {
pack: 'center'
}
},
items: [
{cls:'hello', title:'Hello'},
{cls:'world', title:'World'}
]
});
}
});
please help me
how can i fix it ??
I'm so excited to discover this framework but this problem still bother me