tobiu
15 Oct 2011, 10:55 AM
hi team,
when creating an app like this:
Ext.Loader.setConfig({
enabled : true
});
Ext.application({
name : 'SC',
phoneStartupScreen : 'resources/images/startscreen.jpg',
controllers : [
'Main'
],
stores : [
'Settings'
],
views : [
'login.Login'
]
});
the loader successfully loads the controller and the view, but for the store it fires an error:
[Ext.Loader] Synchronously loading 'SC.store.Settings'; consider adding Ext.require('SC.store.Settings') above Ext.onReady
Uncaught Error: [Ext.Loader] Failed loading synchronously via XHR: 'app/store/Settings.js'; It's likely that the file is either being loaded from a different domain or from the local file system whereby cross origin requests are not allowed due to security reasons. Use asynchronous loading with Ext.require instead.
when creating an app like this:
Ext.Loader.setConfig({
enabled : true
});
Ext.application({
name : 'SC',
phoneStartupScreen : 'resources/images/startscreen.jpg',
controllers : [
'Main'
],
stores : [
'Settings'
],
views : [
'login.Login'
]
});
the loader successfully loads the controller and the view, but for the store it fires an error:
[Ext.Loader] Synchronously loading 'SC.store.Settings'; consider adding Ext.require('SC.store.Settings') above Ext.onReady
Uncaught Error: [Ext.Loader] Failed loading synchronously via XHR: 'app/store/Settings.js'; It's likely that the file is either being loaded from a different domain or from the local file system whereby cross origin requests are not allowed due to security reasons. Use asynchronous loading with Ext.require instead.