当前位置:编程学习 > C#/ASP.NET >>

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
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,