1. #1
    Sencha User
    Join Date
    Mar 2013
    Posts
    30
    Vote Rating
    0
    waqas iqbal is on a distinguished road

      0  

    Default Unanswered: Test App not working

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Answers
    3541
    Vote Rating
    847
    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


    Any errors in the console?
    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.

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Location
    Pakistan
    Posts
    82
    Answers
    3
    Vote Rating
    2
    zonaib is on a distinguished road

      0  

    Default


    its works for me
    Untitled.jpg

Thread Participants: 2