javascript - Safari HTTP status code -1001? -


not entirely sure happening here. i'm making following ajax call, in safari fails , returns status code -1001. safari seems think call has been successful, despite fact returns no data.

opening url in window returns correct data. can't seem find on status code on google, although 1 post did suggest safari has issues calls take while return.

 $.ajax({         url : sponsor.url,         async : false,         datatype : 'json',         success : function(result) {             if (result.length > 0) {                 var offer;                 ( var = 0; < result.length; i++) {                     offer = result[i];                     sponsor.offers[offer.id] = {                             'id' : offer.id,                             'displaytype' : offer.offerdisplay.displaytype,                             'status' : 'accept'                     }                      console.log(offer);                 }              }         }     }); 

i'm wondering if might have async:false? call take quite long time return because running within local tomcat instance. call can take upwards of 10 seconds return on local machine, in live environment call near instantaneous.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -