2012-06-02 34 views
1

我正在使用uploadify插件允许用户上传文件到我的网站。该脚本工作正常铬,但在IE无法正常工作和FirefoxUploadify浏览器兼容性问题

$(function() { 
    $('#file_upload').uploadify({ 
    'checkExisting' : 'check-exists.php', 
    'buttonText' : 'Select project', 
    'fileSizeLimit' : '163840KB', 
    'fileTypeDesc' : 'Image Files', 
    'fileTypeExts' : '*.zip; *.rar', 
     'swf'  : 'uploadify.swf', 
     'uploader' : 'uploadify.php', 
     'onUploadError' : function(file, errorCode, errorMsg, errorString) { 
     $("input[type=submit]").attr("disabled", "disabled"); 
alert('The file ' + file.name + ' could not be uploaded: ' + errorString); 
        }, 
     'onUploadSuccess' : function(file, data, response) { 
      $("input[type=submit]").removeAttr("disabled"); 
    }, 

    }); 

任何建议:)

回答

1

您发布的代码有一个尾随逗号(最后一个),这可能不会在一些工作IE版本(see this question)。

此外,您的括号并非全部关闭。尝试更改});}) });