PDA

View Full Version : [CLOSED] Error when trying to run the CityBars Designer 2 example



nowtech
10 Feb 2012, 3:27 PM
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:7826 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)Error: [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.

aconran
10 Feb 2012, 4:31 PM
Load it via a webserver.

Put it in your ~/Sites directory

chumster
29 Feb 2012, 8:02 PM
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 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)[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_search?ywsid=&term=Bars&lat=30.2665917&long=-97.7433147&_dc=1330574277214&page=1&start=0&limit=25&callback=Ext.data.JsonP.callback1".

Ext.dom.Element.addMembers.appendChildsencha-touch-all-debug.js:11342 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.loadScriptsencha-touch-all-debug.js:14809 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.requestsencha-touch-all-debug.js:14684 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.doRequestsencha-touch-all-debug.js:31513 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.readsencha-touch-all-debug.js:31041 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.loadsencha-touch-all-debug.js:47499 (http://extjs.cachefly.net/touch/sencha-touch-designer-edition/sencha-touch-all-debug.js)
Ext.define.getBusinessesMyController.js:111 (http://localhost:8081/citybars/app/controller/MyController.js?_dc=1330574276954)
(anonymous function)MyController.js:45 (http://localhost:8081/citybars/app/controller/MyController.js?_dc=1330574276954)
(anonymous function)

chumster
29 Feb 2012, 8:05 PM
Weird, it looks like my ywsid is missing. I'll see if that resolves the issue. Or at least some of it :-)

thanks

aconran
29 Feb 2012, 8:16 PM
sounds like you need to add an appropriate rootProperty