Also, in PhoneGap you can just XHR directly to remote servers and it
should "just work". Cross-domain policy does not apply to PhoneGap
(for a variety of reasons, basically because your app is essentially
running off the file:// URI on-device).
Please be aware that you will have to set up a whitelist for your apps
to access these external domains.
http://docs.phonegap.com/en/1.8.0rc1/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide
On Jun 4, 1:37 am, Julien Chaumond <
chaum...@gmail.com> wrote:
> Hi Eugene, Noli,
>
> In case the server you're pulling data from doesn't support CORS, it would
> be very easy to do what you describe through a Phonegap plugin (see for
> example the Twitter plugin for iOS where you pass a URL and parameters
> stored in a JS array and get a JSON string as output --
https://github.com/phonegap/phonegap-plugins/pull/595)
>
> Julien
>
>
>
>
>
>
>
> On Sun, Jun 3, 2012 at 10:49 AM, Noli Sicad <
nsi...@gmail.com> wrote:
> > PhoneGap for iOS, Android and BlackBerry use WebKit. WebKit supports CORS.
>
> > "WebKit: as announced on the WebGL mailing list, CORS support for
> > images and videos is now fully implemented"
>
> >
http://enable-cors.org/
>
> > Most of the UI for PhoneGap (e.g. jQTouch, jQuery Mobile, Sencha
> > Touch, etc.) use AJAX-JSON to post/get data from web servers.
>
> > Noli
>