05-14-2012 05:18 AM
I have an small jquery mobile app for blackberry platform. In Ripple emulator, Chrome plugin, works fine all the getJSON request, but in RIM Simulator (blackberry 9300) with the app make by PhoneGap Build the getJSON request don't retrieve the data, show the loading spinner in infinite loop.
Could be something in the configuration file? Thanks a lot for any help!
Solved! Go to Solution.
05-14-2012 06:10 AM
Did you setup an access element for the domain you are making the request to? You need to whitelist any domains your app needs to contact. Ripple doesn't enforce this rule.
<access uri="http://www.mydomain.com" subdomains="true"> <feature id="blackberry.app.event" required="true" version="1.0.0"/> </access>
05-14-2012 06:47 AM
05-14-2012 11:08 AM
There also may be an issue of cross-site-scripting. Read this post on how to enable $.support.cors = true:
You want to launch the browser from your WebWorks app? You can do that using the blackberry.invoke and blackberry.invoke.BrowserArguments API. Here is the documentation, as well as a code sample:
05-20-2012 03:34 PM