日期:2014-05-17  浏览次数:20554 次

uploadify的上传按钮不管用

点击按钮没反应,代码:
js:
$(document).ready(function() {
$("#fileuploadify").uploadify({
'uploader' : '<s:url value="/download/uploadifyTest" />',
'swf'      : '<%=path %>/images/uploadify.swf',
'buttonText': '选 择 文 件',
'auto'     : true,
'multi'    : true
})
});
html:
<input type="file" name="fileuploadify" id="fileuploadify"></input>

IE8浏览器,至少应该能弹出上传窗口来吧,折腾快一天了。。。
uploadify不能弹出上传窗口

------解决方案--------------------
有没有js错误?
------解决方案--------------------
引用:
Quote: 引用:

<a href="http://download.csdn.net/detail/jchuang2011/6506763"></a>
我写的一个uploadify插件Demo,添加了很多注释。可以借鉴下,不懂可以问我!
请问这个demo可以在IE8中正常使用吗?

完全可以
只要导入eclipse或者myeclipse发布一下就能用
------解决方案--------------------
可以到我的博客查看一个uploadify实例演示,相信对你比较有帮助,你的按钮路径后面最好加个时间戳
------解决方案--------------------
这是我的上传文件。
$(document).ready(function() {
        $("#uploadify").uploadify({
            'uploader' : '<%=request.getContextPath()%>/img/uploadify.swf',
            'script' : '<%=request.getContextPath()%>/web/resFile/add',//后台处理的请求
            'cancelImg' : '<%=request.getContextPath()%>/img/cancel.png',
            'fileDataName':'uri',//服务器端根据这个接收文件
            'queueID' : 'fileQueue',//与下面的id对应
            'queueSizeLimit' : 30,
            'fileDesc' : '图片文件',
            'fileExt' : '*.png;*.jpg;*.gif;*.bmp', //控制可上传文件的扩展名,启用本项时需同时声明fileDesc
            'auto' : false,
            'multi' : true,
            'simUploadLimit' : 2,
            'buttonText' : 'BROWSE',
            'onError' : function(event, queueID, fileObj, errorObj) {
                alert(" 上传失败" + errorObj.info + "错误类型" + errorObj.type);
&nbs