PDA

View Full Version : Andorid Native Problem with url



JonasBlatt
4 Sep 2013, 4:10 AM
Hello all,
I'm new here and i need your help:



Ext.Ajax.request({
url: '/pgm/HABLGN',
type: 'POST',
params: {
action : 'btnLogin',
user : Ext.getCmp('user').getValue(),
pwd: Ext.getCmp('password').getValue(),
},

...

is working fine on my ipad and in the browser.
But when i build an apk for android, I got no response from the server.


i tried this:


Ext.Ajax.request({
url: 'http://192.168.1.254:15010/pgm/HABLGN',
type: 'POST',
params: {
action : 'btnLogin',
user : Ext.getCmp('user').getValue(),
pwd: Ext.getCmp('password').getValue(),
},

...

and it works..

but i need the url "/pgm/HABLGN"..
where is the problem?


sry for my bad language.

fmoseley
5 Sep 2013, 10:47 PM
Try using the relative path from the file that is making the request.