ie 9 ie8 plupload 上传按钮问题 处理
来源:互联网 发布:简单企业网站源码 编辑:程序博客网 时间:2024/05/29 09:12
参考: http://stackoverflow.com/questions/21014586/plupload-does-not-seem-to-be-uploading-files-in-ie-9-it-works-in-other-browsers
有可能你是弹出层 里面显示的上传控件,弹出层是隐藏的。ie9 以下对隐藏的 uploader不能很好的渲染,
所以解决方案就是 ,在你做弹出层动作之前,show出弹出层。问题解决。
或者是少加了参数 runtime
For everyone who has same problem as me:
I had the following HTML
code
<div class="container" style="display:none"> <div> Logo: </div> <div style="clear"></div> <div id="uploader"> <div id="runtime" class="right"> No runtime was found ! </div> <div> <a id="pickfiles" href="#">[Select files]</a> <a id="uploadfiles" href="#">[Upload files]</a> </div> </div></div>
The class container
was created as dialog
$(function(){ $(".container").dialog({modal:true, width:400});});
As we know that DIV
is initial hidden because of dispaly:none
(of course, you can set up autoOpen:false
as a new option in dialog object) and remove the style.
In IE8
(probably in earlier and later version) the uploader cannot be good instantiated if the div
is hidden. (Returns the above error)
In Chrome
and Firefox
(I don't test this issue in Opera
) works fine.
So, my advice is to avoid hidden block (even if you wish to create modal dialog).
I removed the display:none
style and dialog
object from that div and now works very good in IE8
.
Why? I don't know why in IE
, the instance of object is not created at start-up of page, though in Firefox
and Chrome
, the instance was created normally.
- ie 9 ie8 plupload 上传按钮问题 处理
- plupload附件上传插件IE8问题
- plupload 上传组件初始化问题
- 前端上传组件Plupload使用以及IE下注意的问题
- file上传按钮替换以及解决IE浏览器隐藏file按钮不能上传文件问题
- ie8下button按钮问题
- 解决plupload-2.1.2,springmvc上传中文文件名乱码问题
- 目前问题:plupload上传带参数到后台
- plupload上传组件chrome浏览器打开卡顿问题
- plupload 上传组件
- plupload上传例子
- 前端上传组件Plupload
- PLupload 上传模块
- 上传插件 plupload使用说明
- Plupload上传插件使用
- plupload预览上传效果
- 前端上传组件Plupload
- 上传plupload的使用
- Cookies,SSL,httpclient的多线程处理,HTTP方法
- 每个电子工程师都必须面对的15个问题
- HTTP协议的请求头和响应头讲解
- 嵌入式Linux文件系统介绍
- 多台memcache服务器(ubuntu)实现session共享
- ie 9 ie8 plupload 上传按钮问题 处理
- 微软的Oxford工程计划在应用中使用智能化
- C开发实战(弱指令生成器)
- 概率占据图算法(POM)介绍
- 设计模式读书笔记-----抽象工厂模式
- JQuery操作DOM元素
- loadView和viewDidLoad及initWithNibName/awakeFromNib/initWithCoder
- jdbc与mysql的连接错误解决——“Connect failed: Access denied for user 'root'@'localhost' (using password: YES)”
- 生活感悟