Q. I want to create an application for phonegap to access externally deployed web services via AJAX. How can i resolve the issue with the
cross-domain security policy of XmlHttpRequest?
A. The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply.
(in Android,you may grant android.permission.INTERNET to your app by edit the AndroidManifest.xml﻿﻿﻿)

Juan Leyva
added a comment - 13/Nov/11 6:09 PM I think this is a required feature for developing HTML5 webservice clients
For the readers: Please note that this is not required if you package your app with Phonegap or other frameworks.
See: http://wiki.phonegap.com/w/page/16494770/FAQ (AJAX question)..
Q. I want to create an application for phonegap to access externally deployed web services via AJAX. How can i resolve the issue with the
cross-domain security policy of XmlHttpRequest?
A. The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply.
(in Android,you may grant android.permission.INTERNET to your app by edit the AndroidManifest.xml﻿﻿﻿)

Jérôme Mouneyrac
added a comment - 18/Feb/12 2:08 PM - edited The github submission I attached was created for testing a Moodle HTML5 ws client prototype. It could need a bit of polishing, but it should not be far from final version.

Nathan Mares
added a comment - 18/Jul/12 8:13 AM I have to agree, this would be a useful addition to Moodle's web services.
Jerome - github submissions looks good but shouldn't the Content-Type be "application/javascript" for the jsonp content type?

I will not be able to work on this issue in the immediate future. In order to create a truer sense of the state of this issue and to allow other developers to have chance to become involved, I am removing myself as the assignee of this issue.
For more information, see http://docs.moodle.org/dev/Changes_to_issue_assignment

Jérôme Mouneyrac
added a comment - 20/May/13 8:17 AM I will not be able to work on this issue in the immediate future. In order to create a truer sense of the state of this issue and to allow other developers to have chance to become involved, I am removing myself as the assignee of this issue.
For more information, see http://docs.moodle.org/dev/Changes_to_issue_assignment