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
    Gainesville, FL
    Posts
    36,795
    Answers
    3466
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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
    ________________
    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.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi