I have a rails3 rest service and I am developing a phonegap app in which I can only use HTML5 and Jquery javascript.
I am not able to make a POST rest call with ajax jquery to my rail3 rest service because of the cross domain security.
How can I resolve it. If you can point me to the code for both client and server side I will really appreciate it
If your app is running from the file:// protocol then you can do a cross domain request. From the jQuery Mobile docs:
As well make sure you whitelist the server you are attempting to make the AJAX call to.