Results 1 to 3 of 3

Thread: Test App not working

  1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    30
    Vote Rating
    0
      0  

    Default Test App not working

    Hi everyonE, i am newly born to Sencha touch development :-)...
    when i tried to run the simple app in it , i am facing trouble which is not clear to me.
    Application is not working in my case any possible tips??
    My app.js file
    Code:
    /*global Ext:false */
    Ext.application({
        launch: function () {
            Ext.Viewport.add({
                xtype: 'titlebar',
                docked: 'top',
                title: 'A very long title',
                items: [{
                    align: 'left',
                    text: 'This button has a super long title'
                }, {
                    align: 'right',
                    text: 'Another button'
                }]
            });
    
    
            Ext.Viewport.setStyleHtmlContent(true);
            Ext.Viewport.setHtml('This shows how the title and buttons will automatically adjust their size when the width of the items are too wide.');
        } // launch
    }); // application()
    
    
    
    My index.html
    
    Code:
    <title>Hello World</title>
    <script src="{{=URL('static','touch/sencha-touch.js')}}" type="text/javascript"></script>   
    <link href="{{=URL('static','touch/resources/css/sencha-touch.css')}}" rel="stylesheet" type="text/css" />
    <script src="{{=URL('static','view_stjs/app.js')}}" type="text/javascript"></script>

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,026
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    Any errors in the console?
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Location
    Pakistan
    Posts
    96
    Answers
    4
    Vote Rating
    3
      0  

    Default

    its works for me
    Untitled.jpg

Posting Permissions

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