XmlHttpRequest not working
Posted: 16:51, 26 Jan 2016
Hello there,
I'm trying to send my app's data to a web-server.
Therefore I'd like to use Ajax.
My simplest approach so far:
- Copy the helloworld-example
- Add javascript to make an xhr-call to a .php that simply returns a number and alerts me when it's done
When I open the page on my pc it works correctly.
But when I try on an android device (3 different devices so far)
the request always has state: 1 and status: 0.
I can open the .php directly within the app and it works as it should,
and I can open other websites that call the same .php asynchronously.
I simply can't do it from the app itself.
Please help me,
Best regards
I'm trying to send my app's data to a web-server.
Therefore I'd like to use Ajax.
My simplest approach so far:
- Copy the helloworld-example
- Add javascript to make an xhr-call to a .php that simply returns a number and alerts me when it's done
When I open the page on my pc it works correctly.
But when I try on an android device (3 different devices so far)
the request always has state: 1 and status: 0.
I can open the .php directly within the app and it works as it should,
and I can open other websites that call the same .php asynchronously.
I simply can't do it from the app itself.
Please help me,
Best regards