Results 1 to 4 of 4

Thread: Basic problem

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

    Default Basic problem

    Hello,
    i'm getting started with sencha right today, and i found the first problem :|
    can someone explain me what is happening????
    whit this works:
    Code:
                    <!DOCTYPE html>
    <html>
        <head>
            <script type="text/javascript" src="http://cdn.sencha.io/touch/1.1.0/sencha-touch.js" ></script>
            <link rel="stylesheet" href="http://cdn.sencha.io/touch/1.1.0/resources/css/sencha-touch.css" type="text/css" />
            <script type="text/javascript" >
     
    new Ext.Application({
        launch: function() {
            new Ext.Panel({
                fullscreen: true,
                dockedItems: [{xtype:'toolbar', title:'My First App'}],
                layout: 'fit',
                styleHtmlContent: true,
                html: '<h2>Hello World!</h2>I did it!'
            });
        }
    });
            </script>
        </head>
        <body></body>
    </html>
    and this doesn't work:
    Code:
    <!DOCTYPE html>
    <html>
        <head>
            <script type="text/javascript" src="touch/sencha-touch-debug.js"></script>
            <link rel="stylesheet" href="touch/resources/css/sencha-touch.css" type="text/css" />
            <script type="text/javascript" >
        
    new Ext.Application({
        launch: function() {
            new Ext.Panel({
                fullscreen: true,
                dockedItems: [{xtype:'toolbar', title:'My First App'}],
                layout: 'fit',
                styleHtmlContent: true,
                html: '<h2>Hello World!</h2>I did it!'
            });
        }
    });
            </script>
        </head>
        <body></body>
    </html>
    obviously the path are correct, and i can read them from google chrome inspect element function.

    thank you

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    What isn't working? Do you get 404 errors for the script and link tags? Do you get any errors?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    2
    Vote Rating
    0
      0  

    Default

    the differents between two pages are only the locations of css and js files.
    the difference is just that one works ("Hello World" appears on the screen) and the other one doesn't! no strange errors

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    As long as you are loading Sencha Touch 1 (not 2) then it should be fine.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

Posting Permissions

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