我想结合uploadify的股利。
当我点击上传按钮,它给我的错误一样SCRIPT5007: Object expected.
对于低于其在IE9的div拖动产生错误链接演示检查
头
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.20/jquery-ui.js"></script>
<script type="text/javascript" src="http://www.uploadify.com/wp-content/themes/uploadify/js/jquery.uploadify.min.js"></script>
身体
<div class="container" id="container">
<div id="uploadify-item"></div>
This container is not draggable in IE9 but it works in Chrome and FF. Why not?
</div>
JS
$('#uploadify-item').uploadify({
'swf' : 'http://www.uploadify.com/uploadify/uploadify.swf',
'uploader' : 'http://www.uploadify.com/uploadify/uploadify.php'
});
$("#container").draggable();
请参阅: http://jsfiddle.net/axzdR/19/
IE9似乎有一个bug与SWFUpload的嵌入,因此,如果你尝试调用“的getAttribute /的removeAttribute /的setAttribute”的元素,引发错误的“预期目标”上。 我发现,在swfupload.js清理()函数删除所有JS功能,包括“的getAttribute /的removeAttribute /的setAttribute”从物体DOM中IE9。
要解决这个问题
在SWFUpload.prototype.cleanUp
更改:
if (typeof (movieElement[key]) === "function")
至:
if (typeof (movieElement[key]) === "function" && key[0] <= 'Z') // Remove only Flash functions (starts with capital letters).
uploadify的修补版本保持在这个位置
http://www.dariowiz.com/scripts/jquery.uploadify3.1Fixed.js
问候。
尝试使用jQuery的鲈(容器在IE9拖动,而“预期的对象”的错误在前看不见)
<script type="text/javascript"
src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript"
src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
请确保您已经安装Flash播放器IE(它是单独的安装),它可以从这里下载http://get.adobe.com/flashplayer/otherversions/
但是,即使Unloadify 演示是不是在我的IE9的工作(我可以点击喜欢在选择文件按钮,一分钟没有结果,突然没有原因,它开始工作,并打开选择文件对话框)
您可以找到这个问题的解决最终>>> https://groups.google.com/forum/?fromgroups=#!topic/swfupload/57ySk2JoLbE
似乎存在uploadify的那个与jquery UI具体地,在SWFUpload的效用冲突IE 9.源的问题。 为了解决这个问题,你需要做这似乎在这里有详细步骤一点点黑客: http://www.uploadify.com/forum/#/discussion/comment/19212
对不起,我不能没有建立整个测试环境中验证这一点。 不是东西,刚好可以放入的jsfiddle。 祝你好运,让你成功我知道。