技术CTO-关注编程入门知识,提供编程入门教程

您的位置: 首页 > 前端开发 > javascript > 正文

uploadify3.2 ie8 以上高版本 ie9 ie10 ie11 文件选择按钮无法点击

来源: 技术CTO 阅读:

当前IE 环境 
adoble flash 版本 14
uploadify 官网下载3.2
问题描述:ie8 以上高版本 ie9 ie10 ie11 文件选择按钮无法点击
希望有朋友能帮帮忙
JS代码

function inituploadify(){
var filetype = $('#fileType').combobox('getValue');
$("#uploadify").uploadify({
                'debug' : false,
                'uploader':_basePath_+'controllers/HandUPAction/upFile.do?filetype='+filetype,
                'swf': _basePath_+'resource/uploadify/uploadify.swf',
                'progressData':'percentage',
                'cancelImg': _basePath_+'resource/uploadify/uploadify-cancel.png',
                 'fileObjName': 'refile',   
                'queueID': 'fileQueue',
                'auto': false,
                'multi': true,
                'removeCompleted':false,
                'fileSizeLimit':0,
                'uploadLimit':999,
                'itemTemplate' : '<div id="${fileID}" class="uploadify-queue-item">' +
                 '${fileName}(${fileSize})&nbsp;&nbsp;' +
                 '<a href="javascript:$(\'#uploadify\').uploadify(\'upload\',\'${fileID}\')">开始上传</a>' +
                 '|<a href="javascript:$(\'#uploadify\').uploadify(\'cancel\',\'${fileID}\')">取消上传</a>' +
                 '<span class="data"></span><div class="uploadify-progress"><div class="uploadify-progress-bar"></div></div>' +
                 '</div>', 
                'onUploadError':function(){
                 //$.messager.alert("提示", '上传文件超出999个文件', 'info');
                },
                'fileTypeExts':'*.*',
                'buttonText': '选择文件',
               // 'buttonImg':_basePath_+ 'resource/uploadify/uploadify-cancel.png',
                'buttonCursor' :'hand',
                'onUploadSuccess':function(file, data, response){
                 $('#' + file.id).find('.data').html(' - 完成');
                },
                'onUploadError': function(file, errorCode, errorMsg, errorString){
                }
            });


}

有可能是swf地址不正确
SWF 地址是正确的 uploadify3.2 ie8 以上高版本 ie9 ie10 ie11 文件选择按钮无法点击
引用 2 楼 lqs_death 的回复:
SWF 地址是正确的 uploadify3.2 ie8 以上高版本 ie9 ie10 ie11 文件选择按钮无法点击

测试过在IE11下没有问题,插件本身是OK的
使用3.2.1版本在IE11下测试图:
\

代码:
        $("#uploadify").uploadify({
            'debug': false,
            'uploader': 'UploadHandler.ashx',
            'swf': '../JS/uploadify/uploadify.swf',
            'progressData': 'percentage',
            'cancelImg': '../JS/uploadify/uploadify-cancel.png',
            'fileObjName': 'refile',
            'queueID': 'fileQueue',
            'auto': false,
            'multi': true,
            'removeCompleted': false,
            'fileSizeLimit': 0,
            'uploadLimit': 999,
            'itemTemplate': '<div id="${fileID}" class="uploadify-queue-item">' +
                 '${fileName}(${fileSize})&nbsp;&nbsp;' +
                 '<a href="javascript:$(\'#uploadify\').uploadify(\'upload\',\'${fileID}\')">开始上传</a>' +
                 '|<a href="javascript:$(\'#uploadify\').uploadify(\'cancel\',\'${fileID}\')">取消上传</a>' +
                 '<span class="data"></span><div class="uploadify-progress"><div class="uploadify-progress-bar"></div></div>' +
                 '</div>',
            'onUploadError': function () {
                //$.messager.alert("提示", '上传文件超出999个文件', 'info');
            },
            'fileTypeExts': '*.*',
            'buttonText': '选择文件',
            // 'buttonImg':_basePath_+ 'resource/uploadify/uploadify-cancel.png',
            'buttonCursor': 'hand',
            'onUploadSuccess': function (file, data, response) {
                $('#' + file.id).find('.data').html(' - 完成');
            },
            'onUploadError': function (file, errorCode, errorMsg, errorString) {
            }
        });
你 adobe flash player 版本是多少的 你更新到最新版本  14 实验下
更新了也可以,你是不是把flash控件禁用了?

^_^ 如果您热爱技术、热爱编程,想与更多的朋友一起交流学习,欢迎加入本站官方QQ群:345733473 ^_^