Note that there are some explanatory texts on larger screens.

plurals
  1. POAjax Post returning 500 error ie8 and ie9
    primarykey
    data
    text
    <p>I have gone through every stackoverflow post about this but still can't figure out why its not working. </p> <p>I have a simple jquery ajax post that works everywhere except ie8 and ie9.</p> <p>The server is asp.Net</p> <p>Index.html has:</p> <pre><code>&lt;meta charset="utf-8" /&gt; &lt;meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /&gt; </code></pre> <p>Jquery Post:</p> <pre><code>$.ajax({ // cache: false, // crossDomain: true, // contentType: "application/json; charset=utf-8", type: "POST", url: self.dom.API+"/api/xxx/InsertUser", dataType: "json", data: postData, success: function(data){ if(data.Status == "Success"){ self.onSubmitSuccess(); } else{ self.unknownError(); } }, error: function(data){ } }); </code></pre> <p>I also added this plugin to fight the Xdomin security issue. <a href="https://github.com/jaubourg/ajaxHooks/blob/master/src/xdr.js" rel="nofollow">https://github.com/jaubourg/ajaxHooks/blob/master/src/xdr.js</a></p> <p>Error &amp; Response via Charles</p> <pre><code>Response: {"Message":"An error has occurred."} POST /api/xxx/InsertUser HTTP/1.1 Accept */* Origin http://local.xxx.com Accept-Language en-US Accept-Encoding gzip, deflate User-Agent Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0) Host xxx-api.xxx.com Content-Length 206 Pragma no-cache URL http://xxx-api.xxx.com/api/xxx/InsertUser Status Complete Response Code 500 Internal Server Error Protocol HTTP/1.1 Method POST Content-Type application/json; charset=utf-8 Client Address /127.0.0.1 Remote Address xxx.com/ipaddress </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload