Ajax call failure on Microsoft Lumia 950?

Praveen Deshmukh

New member
Jun 10, 2016
1
0
0
Ajax call failure on Microsoft Lumia 950

My ajax call is working fine in all other mobile devices except Microsoft Lumia 950.
My ajax response always goes in error.
ready state : 0, status : 0, statusText: error, responseText:, textstatus:error,error:

$.ajax({
type: 'POST',
url: '/request.php/' + page + '?nav=' + nav + '&rowIndex=' + rowIndex + '&time='+$.now(),
data: $('form[name=quoteForm]').serialize(),
dataType: 'json',
cache: false,
beforeSend: function () {
formHelper.loader('show', page);
startTime = (new Date()).getTime();
},
success: function (obj)
{
$('#col1').html(obj.content).

},
error: function (r, s, e) {
alert('In ajax error');
var string = "readyState: "+r.readyState+", status: "+r.status+", statusText: "+r.statusText+", responseText: "+r.responseText+", textStatus: "+s+", error: "+e;
alert(string);
}
});

This only happens when api response takes long time. If i sent hard coded response from php file, this works fine. In this ajax ajax error should be timeout but i am getting "error".
Please help me to fix this.
 
Last edited:

Members online

No members online now.

Forum statistics

Threads
341,110
Messages
2,264,174
Members
428,827
Latest member
kazem