-
10 Feb 2012 3:27 PM #1
Error when trying to run the CityBars Designer 2 example
Error when trying to run the CityBars Designer 2 example
I get the following error in Safari when running the CityBars Designer 2 example and application doesnt load. Any suggestions?
[Ext.Loader] Synchronously loading 'CityBars.view.Viewport'; consider adding Ext.require('CityBars.view.Viewport') above Ext.onReady
sencha-touch-all-debug.js:7826Error: [Ext.Loader] Failed loading synchronously via XHR: 'app/view/Viewport.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.
-
10 Feb 2012 4:31 PM #2
Load it via a webserver.
Put it in your ~/Sites directoryAaron Conran
@aconran
Sencha Architect Development Team
-
29 Feb 2012 8:02 PM #3
Seeing the same issue as the OP
Seeing the same issue as the OP
I'm seeing this issue both with the provided example and after creating the App from scratch while walking along with the video tutorial.
I am serving up from a local webserver as well. Any ideas?
root has been deprecated as a configuration on Reader. Please use rootProperty instead.
sencha-touch-all-debug.js:6291[Ext.Loader] Synchronously loading 'CityBars.view.Viewport'; consider adding Ext.require('CityBars.view.Viewport') above Ext.onReady
- Resource interpreted as Script but transferred with MIME type text/plain: "http://api.yelp.com/business_review_...sonP.callback1".
- Ext.dom.Element.addMembers.appendChildsencha-touch-all-debug.js:11342
- Ext.define.loadScriptsencha-touch-all-debug.js:14809
- Ext.define.requestsencha-touch-all-debug.js:14684
- Ext.define.doRequestsencha-touch-all-debug.js:31513
- Ext.define.readsencha-touch-all-debug.js:31041
- Ext.define.loadsencha-touch-all-debug.js:47499
- Ext.define.getBusinessesMyController.js:111
- (anonymous function)MyController.js:45
- (anonymous function)
- Resource interpreted as Script but transferred with MIME type text/plain: "http://api.yelp.com/business_review_...sonP.callback1".
-
29 Feb 2012 8:05 PM #4
Weird, it looks like my ywsid is missing. I'll see if that resolves the issue. Or at least some of it :-)
thanks
-
29 Feb 2012 8:16 PM #5
sounds like you need to add an appropriate rootProperty
Aaron Conran
@aconran
Sencha Architect Development Team
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote