I make a call to a PHP script but does not execute a piece of AJAX code. from the mobile browser runs, and from the PC browser too.
HttpClient httpclient = new DefaultHttpClient();
HttpGet httppost = new HttpGet(urli);
HttpResponse response = httpclient.execute(httppost);
HttpEntity entity = response.getEntity();
is = entity.getContent();
My AJAX code:
$.ajax({
type: 'POST',
url: /* myURL */
dataType: 'text',
cache: false,
contentType: false,
processData: false,
data: form_data,
success: function (data)
{
if(data == 1)
{
alert("....");
}
else if (data == 0)
{
alert("....");
}
}
});
What it is?