ajaxSubmit跨域上传取回调值问题?
提交表单时(跨域)到UploadImage.ashx页面执行,但是提醒错误FileUpload TypeError:Cannot read property 'XMLDocument' of undefined,我认为是没有回调的数据(data无值)。谢谢
function change() {
var unitsid = $("#unitsid").val();
$("#form1").ajaxSubmit({
success: function(data, textStatus) {alert(data.msbox);
if (data.msg == "1") {
$("#txtfile").val(data.msbox);
} else {
alert(data.msbox);
}
},
error: function(data, status, e) {console.log(data)
alert("上传失败,错误信息:" + e);
},
url: "http://192.168.0.102/UploadImage.ashx?otype=2&unitsid=" + unitsid,
type: "post",
dataType: "json",
timeout: 600000
});
}
补充:.NET技术 , ASP.NET