07-12-2011 03:30 AM
07-12-2011 06:23 AM
Is the URL you are using based on file:/// or on http:// ?
07-12-2011 06:39 AM
I use file://
But i did this....
Ripple, by default, is configured to allow you to test mobile HTML5 applications that are hosted on a local or remote web server. However, that might not always be ideal and you might find yourself needing to test applications that reside on you local file system. Here are the steps you’ll need to follow to enable Ripple to test applications that are hosted on your local file system:
1. You will need to start the Chrome browser with the following command line flag:
2. Once that is done, you’ll need to visit the following URL in Chrome: chrome://extensions/, locate the Ripple extension in the list and make sure the “Allow access to file URLs” checkbox is checked. "
So I'll give it a try with a local server...
07-12-2011 08:02 AM
07-12-2011 11:15 AM
If it helps, you can also disable the proxy Ripple uses, and then disable web security in Chrome and essentially have a "wide open" XMLHttpRequest object that acts more like it does on a mobile app platform (ex PhoneGap, WebWorks etc).
If you are interested in that, see this forum post about it (as of yet it is not mentioned on rippledocs.tinyhippos.com).
07-13-2011 03:08 AM
This is the error I am getting in the console...
XMLHttpRequest cannot load file:///C:/Users/workspace/WidgetSample/config.xml. Cross origin requests are only supported for HTTP.
I am new in this technology so I'll try to figure out..
07-15-2011 01:40 PM
That is a weird error. Typically the request to config.xml should be local. You pointed out you ran Chrome with the --allow-file-access-from-files flag. What OS are you on? My thought is, I know at least for me (on Linux) unless I start Chrome up with a new user profile as well, the flag may not get applied if there are any existing instances of Chrome open.
Could that be it? If not, let me know!