1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    2
    Vote Rating
    0
    azsl1326 is on a distinguished road

      0  

    Exclamation Answered: Sencha Touch 2.0 Examples - Not Working

    Answered: Sencha Touch 2.0 Examples - Not Working


    So I followed the examples on the getting started page, http://docs.sencha.com/touch/2-0/#!/...etting_started, and am unable to get them to work. For example, I tried this:


    Ext.application({
    name: 'Sencha',
    launch: function() {
    alert('launched');
    }
    });


    Running in chrome, nothing happens. Using the Javascript debugger I get the following error:

    Code:
    Uncaught Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required classes: Ext.event.Dispatcher, Ext.MessageBox
    



    Difficult to learn when you can't even get the examples to work!

  2. Unfortunately there is a bug with that guide (sorry!) that we missed. If you open your index file, please replace this line:

    Code:
    <script type="text/javascript" src="touch/sencha-touch.js"></script>
    With this:

    Code:
    <script type="text/javascript" src="touch/builds/sencha-touch-all-debug.js"></script>
    And your code should work.

    Sorry again!

  3. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    Answers
    93
    rdougan will become famous soon enough

      0  

    Default


    Unfortunately there is a bug with that guide (sorry!) that we missed. If you open your index file, please replace this line:

    Code:
    <script type="text/javascript" src="touch/sencha-touch.js"></script>
    With this:

    Code:
    <script type="text/javascript" src="touch/builds/sencha-touch-all-debug.js"></script>
    And your code should work.

    Sorry again!
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  4. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    2
    Vote Rating
    0
    azsl1326 is on a distinguished road

      0  

    Default


    That fixed it! Thank you.

Thread Participants: 1