c# - XMLHttpRequest Exception 101 on IOS devices -


i started getting following message on jquery ajax call on ios devices:

error: network_err: xmlhttprequest exception 101

the ajax call worked months on devices 1 of clients started getting message last week.

i have read being cross domain request problem should not applicable in case.

i have read changing async true fix problem want avoid if can.

here ajax call:

the serversidefunction parameter in form "advanceddistribution.aspx/saveclicked" advanceddistribution.aspx of course aspx file , saveclicked static webmethod(c#).

para 2d array parameter values.

function ajaxcall(serversidefunction, para) {     ajaxreturn = "";       var datapara = "{";     (var = 0; < para.length; i++)     {     datapara += "'" + para[i][0] + "':'" + para[i][1] + "'";         if (i < para.length - 1)         datapara += ",";     }     datapara += "}";      $.ajax({     type: "post",     url: serversidefunction,     data: datapara,     async: false,     //&&js01112013.2 fix bug caused ios6 ajax caching     headers: {"cache-control": "no-cache"},     beforesend: function (xhr)     {         xhr.setrequestheader("content-type", "application/json; charset=utf-8");     },     contenttype: "application/json; charset=utf-8",     datatype: "json",     success: function (msg, status)     {         ajaxreturn = msg.d;     },     error: function (xhr, msg, e)     {         alert(e); //error callback         alert('ajax callback failed');     }     });      return ajaxreturn; } 

since still working on devices i'm hoping simple adding , ios required header ajax call.

any ideas?

thanks.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -