dalenz
27 Aug 2012, 1:37 PM
Hello,
I have a Sencha Touch web app that runs on local server just fine.
The web app makes login ajax call to http://localhost using Ext.Ajax.request with POST method.
var lform = button.up('login_form');
var values = lform.getValues();
Ext.Ajax.request({
url : "http://localhost:8080/myapp/assets/www/api/login.php",
params : values,
method: "POST",
success: function(response) {
alert("SUCCESS");
},
failure: function(response) {
alert("FAILURE");
}
After, I converted the web app into a native Android app via PhoneGap.
When I run the application, I don't get error messages, but it seems not to detect the file login.php (I'm using android emulator 4.0.3).
What am I doing wrong?
I entered <access origin=".*"/> into config.xml.
Thanks,
David
I have a Sencha Touch web app that runs on local server just fine.
The web app makes login ajax call to http://localhost using Ext.Ajax.request with POST method.
var lform = button.up('login_form');
var values = lform.getValues();
Ext.Ajax.request({
url : "http://localhost:8080/myapp/assets/www/api/login.php",
params : values,
method: "POST",
success: function(response) {
alert("SUCCESS");
},
failure: function(response) {
alert("FAILURE");
}
After, I converted the web app into a native Android app via PhoneGap.
When I run the application, I don't get error messages, but it seems not to detect the file login.php (I'm using android emulator 4.0.3).
What am I doing wrong?
I entered <access origin=".*"/> into config.xml.
Thanks,
David