Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
上传图像时,jquery.form.js在IE中不起作用_Jquery_Html_Internet Explorer_Image Uploading - Fatal编程技术网

上传图像时,jquery.form.js在IE中不起作用

上传图像时,jquery.form.js在IE中不起作用,jquery,html,internet-explorer,image-uploading,Jquery,Html,Internet Explorer,Image Uploading,我在页面中使用jquery.form.jsversion 3.18上传图像。它在FF和Chrome中运行良好,但在IE中不起作用 在IE中,图像可以成功上传,但我无法从服务器获取json返回,IE表示访问被拒绝。p、 jquery版本是v1.5.1。有人能帮忙吗 以下是我的js代码: var options = { target: '#bar_img_info', url: 'dealUploadImg.jsp', type: 'POST', success: f

我在页面中使用jquery.form.jsversion 3.18上传图像。它在FF和Chrome中运行良好,但在IE中不起作用

在IE中,图像可以成功上传,但我无法从服务器获取json返回,IE表示访问被拒绝。p、 jquery版本是v1.5.1。有人能帮忙吗

以下是我的js代码:

var options = {
    target: '#bar_img_info',
    url: 'dealUploadImg.jsp',
    type: 'POST',
    success: function(msg){
    $('#bar_img_info').html(msg);
    }
};

$("#uploadForm").ajaxSubmit(options); 
这是我的html:

<label>Bar Image:</label>
<input type="file" name="bar_img" value="" id="bar_img"/> <strong style="color: red;"    
    id="bar_img_info"></strong><br />
<a href="javascript:dealUploadImg();" class="btn">upload</a>
我认为您使用的是Internet Explorer 8中的AJAX上载,它不支持多文件上载。这已经讨论过了。

我认为您使用的是Internet Explorer 8中的AJAX上载,它不支持多文件上载。这已经讨论过了