ie 9 ie8 plupload 上传按钮问题 处理
2015-05-15 18:10
197 查看
参考: 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
The class
created as dialog
As we know that
initial hidden because of
course, you can set up
a new option in dialog object) and remove the style.
In
in earlier and later version) the uploader cannot be good instantiated if the
hidden. (Returns the above error)
In
don't test this issue in
works fine.
So, my advice is to avoid hidden block (even if you wish to create modal dialog).
I removed the
and
from that div and now works very good in
Why? I don't know why in
the instance of object is not created at start-up of page, though in
the instance was created normally.
有可能你是弹出层 里面显示的上传控件,弹出层是隐藏的。ie9 以下对隐藏的 uploader不能很好的渲染,
所以解决方案就是 ,在你做弹出层动作之前,show出弹出层。问题解决。
或者是少加了参数 runtime
For everyone who has same problem as me:
I had the following
HTMLcode
<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
containerwas
created as dialog
$(function(){ $(".container").dialog({modal:true, width:400}); });
As we know that
DIVis
initial hidden because of
dispaly:none(of
course, you can set up
autoOpen:falseas
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
divis
hidden. (Returns the above error)
In
Chromeand
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:nonestyle
and
dialogobject
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
Firefoxand
Chrome,
the instance was created normally.
相关文章推荐
- 前端上传组件Plupload使用以及IE下注意的问题
- 处理文件上传后返回json数据在IE出现文件下载问题
- plupload附件上传插件IE8问题
- 遇到一个IE升级到IE8之后脚本无法跑的问题。那么对于这样的问题,我们需要如何去处理?
- 解决在Safari、IE高版本中采用自定义选择文件按钮ajaxFileUpload不能上传问题
- file 标签上传文件,直接样式太难看!隐藏它,通过别的按钮触发它,又会有IE兼容问题。
- uploadify IE不兼容问题 上传按钮渲染失败
- uploadify 插件上传视频在IE和谷歌浏览器上选择按钮打不开问题
- 文件上传 通过隐藏iframe的方式来实现ajax上传文件并返回处理结果 ie乱码问题解决
- IE6/IE7/IE8/Firefox的CSS各种兼容margin问题解决办法
- 关于kindeditor编辑器批量上传图片不显示添加图片按钮的问题
- 上传文件file按钮的美化处理
- url传中文在IE中出现乱码问题处理
- IOS应用开发-图片处理(拉伸图片 创建缩略图 解决图片旋转的问题 图片编码及上传 将图片写入磁盘)
- IE兼容问题IE6,IE7,IE8,IE9,IE10
- 一行代码解决各种IE兼容问题,IE6,IE7,IE8,IE9,IE10
- 解决IE8上传文件时javascript取文件的本地路径的问题C:\fakepath\..
- IE兼容问题IE6,IE7,IE8,IE9,IE10
- 处理GitHub不允许上传大于100M文件问题
- 解决IE(IE6/IE7/IE8)不兼容HTML5标签的问题[转自大神]