I have a strange issue with my ajax request - it works perfectly fine in all browsers except for IE, specifically IE10!
The error message I am encountering in the IE console is as follows:
SCRIPT7002: XMLHttpRequest: Network Error 0x80070057, Invalid argument.
order
Below is the code snippet of my ajax call:
$('#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)
}
}
});
});