PDA

View Full Version : AJAX and Adroid



pajamabob
22 Aug 2011, 10:11 AM
The long and short of it, I have a mobile solution that works fine when viewed in Chrome on a desktop. However, when making an AJAX call from an Android device, the call instantly goes to failure. Is there a fix for this or am I missing something?


function getAJAXServerData(strURL, objCallBackFunction, strCallingFunction)
{
strURL = EvolveServer + '/Json/' + strURL

Ext.Ajax.request({
url: strURL,
success: function(response, opts) {
var thisResponse = Ext.decode(response.responseText);
if (thisResponse.success == true) {
objCallBackFunction(response.responseText);
}
else
{
errorConnection(strCallingFunction, "Server Response Error", response.responseText);
}
}, failure: function(response, opts) {
errorConnection(strCallingFunction, "Internal Server Error", response.responseText);
}
});
}