New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phonegap, android only: Uncaught Error: Unexpected Content: null #66
Comments
When you use:
and
You will indeed get a
Due to same-origin policy... Try not to use |
Hi, first of all thanks for your reply. [UPDATE] And it seems that:
as stated in different documents like this blog post Thanks! |
Well in that case I suspect The problem to be with phonegap, The error is clearly pointing in the direction of same origin policy problems... |
Yep, at this point I agree...totally something not related to this library, thanks for your answers anyway. |
Unfortunately I have no experience with phonegap, so I won't be able to help you any further... When you do find some interesting information, please consider sharing it here, you might be helping other phonegap/jquery.soap programmers with your findings! =] good luck! |
Hi there,
} I did not have to whitelist anything, there where just a couple of headers that had to be set at the webservice for output. If these headers are set on the response it should work fine. |
Thanks for the reply! I will take inspiration from the above code to try something in the one I have, thanks. |
Hello!
Here's the problem...
The same code works if I run this on the iOS simulator, but on Android I have the following error:
The code is very easy, as I'm only testing some features.
So the code to include js files is the following:
<script type="text/javascript" src="cordova.js"></script> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.soap.js"></script> <script type="text/javascript" src="js/index.js"></script> <script type="text/javascript"> app.initialize(); </script>
in app.initialize I wait for the "deviceready" event to fire the following jquery soap call:
Any hints?
Thanks in advance!
The text was updated successfully, but these errors were encountered: