Results 1 to 2 of 2

Thread: problem with phonegapdemo

  1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,422
    Answers
    3901
    Vote Rating
    1271
      0  

    Default

    This blog post may be enlightening for you http://robertdougan.com/posts/packag...onegap-cordova
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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 in print!

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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •