Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ajax not working in IE11 error code 0x2f78

Here is my ajax setup:

                $.support.cors = true;
                $.ajax({
                    beforeSend: function ()
                    {

                    },
                    type: "POST",
                    url: "test.cgx",
                    data: hex_str,       
                    dataType: "xml",
                    processData: false,
                    contentType: "text/xml; charset=utf-8",
                    success: function (msg)
                    {

                    },
                    error: function (msg)
                    {

                    }
                });

If the data - hexstr smaller than 4 chars (for example hex_str = "3A") I got the following error (after 1 minute of request pending):

XMLHttpRequest: Network Error 0x2f78, Could not complete the operation due to error 00002f78.

This happens only in IE, FF and Chrome can post any data size. The data I send it's not in XML format it's only Hex data (I need the contentType: "text/xml; charset=utf-8" for some other reason).

I'm using Jquery 1.8.2

like image 351
cheziHoyzer Avatar asked Nov 09 '22 23:11

cheziHoyzer


1 Answers

I had the same problem,just put this line in your header,i hope it will work for you

 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >
like image 106
Johnlopez Avatar answered Nov 15 '22 05:11

Johnlopez