8 Feb 2012 2:28 PM #1
First Look - Got 2 warnings errors
I've just downloaded the Sencha Designer Beta, made the First Look app, but I got 2 warnings :
[Ext.Loader] Synchronously loading 'CityBars.view.Viewport'; consider adding Ext.require('CityBars.view.Viewport') above Ext.onReady sencha-touch-all-debug.js:6292
Ressource interprétée comme Script mais transférée avec un type MIME text/plain. business_review_search:-1
Is someone already got these errors ? :-(
8 Feb 2012 4:52 PM #2
These are both warnings that can safely be ignored. The first one, the designer should be adding an additional require. We will fix that.
9 Feb 2012 1:43 AM #3
Oh well ok, but the fact is that nothing appear on the screen, except the title (and gray background).
9 Feb 2012 9:35 AM #4
Do you have an initial view set?
Would you post the project you are having problems with?Aaron Conran
9 Feb 2012 1:06 PM #5
In testing within the browser the citybars application, the package I downloaded from you guys, it just shows a gray background, citybars as the title, and it retrieves my location, but nothing else happens.
Actually, I get these errors on top of those warnings...
XMLHttpRequest cannot load file:///...citybars/app/view/Viewport.js?_dc=1328821478827. Cross origin requests are only supported for HTTP.
Uncaught 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.
9 Feb 2012 1:26 PM #6
Fixed it. I guess my local file system doesn't allow the AJAX due to security reasons like the error said, so I uploaded it to our server and tested it online and it works fine
9 Feb 2012 3:02 PM #7
10 Feb 2012 8:21 AM #8
Also be sure to update the getBusinesses function in your Business Controller to include your own yelp api keyPhil Strong
12 Feb 2012 7:58 AM #9
12 Feb 2012 11:19 AM #10
just found it , I have to use 'requires' to include the component