【发布时间】:2011-11-07 00:26:55
【问题描述】:
我用上传器创建了一个页面。作为上传者,我使用 Uploadify 3。该代码适用于除 IE9 之外的所有浏览器。当我在兼容模式下打开 IE 9 时,它正在工作。在 IE9 中,我无法按下上传按钮。它显示,但对点击没有反应。所以没有打开文件选择对话框。在 Opera、chrome 和 FF 中,该按钮有效,当我单击文件时,会显示打开对话框。
Flash 正在 IE9 中运行。 (版本 11,0,1,152)(youtube 正在运行)
当我右键单击按钮时,我没有得到 Flash 信息。当我在所有其他浏览器中执行此操作时,我会得到 Flash 信息。当我在 youtube 中(在 ie9 中)右键单击时,我还会获得 Flash 信息....?
这是我上传的 jquery 代码:
$(document).ready(function() {
$('#fileInput').uploadify({
'swf': '/Content/Scripts/uploadify3/uploadify.swf',
'uploader': '/nl-nl/Attachment/Upload',
'cancelImage': '/Content/Scripts/uploadify3/uploadify-cancel.png',
'checkExisting': '/nl-nl/Attachment/Check',
'multi': true,
'buttonText': 'Upload',
'postData' :{'RelationId' : '@cookie'},
'sizeLimit': 2147483647,
'auto': true,
onError: function(a, b, c, d) {
if (d.status == 404)
alert("Could not find upload script. Use a path relative to: " + "<?= getcwd() ?>");
else if (d.type === "HTTP")
alert("error " + d.type + ": " + d.status);
else if (d.type === "File Size")
alert(c.name + " " + d.type + " Limit: " + Math.round(d.sizeLimit / 1024) + "KB");
else
alert("error " + d.type + ": " + d.text);
},
onUploadComplete: function() {
$("#Grid").data('tGrid').ajaxRequest();
}
});
});
我做错了吗?这是闪存错误吗?还是别的什么?
【问题讨论】:
标签: jquery asp.net flash asp.net-mvc-3 uploadify