I send an ajax request, it works in all browser except in IE. And not IE6, but IE10!
What error do am I getting? Here is the error thrown in the IE's console:
SCRIPT7002: XMLHttpRequest: Network Error 0x80070057, Invalid argument.
order
And here is the ajax code:
$('#sn_file').live("change", function(){
var item = $("#loader"),
loader = $("<div>", {
"text" : "Uploading file",
"class" : "ajaxloader"
}).appendTo( item ),
form = $(this).parents('form');
form.ajaxSubmit({
success: function( responseText, statusText, xhr )
{
var result = responseText;
if( isNaN(result) )
{
$("#left-file-upload").html( result );
$("#orderform").fadeIn();
loader.remove();
}
else
{
switch( result )
{
case '1':
var msg = "";
break;
case '2':
var msg = "";
break;
case '3':
var msg = "";
break;
case '4':
var msg = "";
break;
}
msg = "<div class=\"err-box\"><p>" + msg + "</p></div>";
item.html(msg)
}
}
});
});
I had same problem with similar ajax request. Try and add
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" >
into "head" section (ie10 and ie9 are almost the same).
Hope this helps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.