1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    1
    Vote Rating
    0
    inesso is on a distinguished road

      0  

    Default Unanswered: problem with phonegapdemo

    Unanswered: problem with phonegapdemo


    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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,107
    Vote Rating
    453
    Answers
    3156
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    This blog post may be enlightening for you http://robertdougan.com/posts/packag...onegap-cordova
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.