-
2 Feb 2012 7:50 AM #1
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!
-
Best Answer Posted by rdougan
Unfortunately there is a bug with that guide (sorry!) that we missed. If you open your index file, please replace this line:
With this:Code:<script type="text/javascript" src="touch/sencha-touch.js"></script>
And your code should work.Code:<script type="text/javascript" src="touch/builds/sencha-touch-all-debug.js"></script>
Sorry again!
-
2 Feb 2012 10:21 AM #2
Unfortunately there is a bug with that guide (sorry!) that we missed. If you open your index file, please replace this line:
With this:Code:<script type="text/javascript" src="touch/sencha-touch.js"></script>
And your code should work.Code:<script type="text/javascript" src="touch/builds/sencha-touch-all-debug.js"></script>
Sorry again!Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
2 Feb 2012 10:31 AM #3


Reply With Quote