从谷歌浏览器最新版本(版本36.0.1985.125 m)开始,我在使用uplodify插件/flash时遇到了问题。Chrome会显示Aw, Snap页面或者有时会显示He's Dead, Jim!。这是我的uplodify代码:
<input type="file" name="file_upload" id="file_upload_50">
<script type="text/javascript">
var basePath = "path to ressources";
var errorMessage = "Error Message";
var allowExts = "*.pdf; *.xls; *.xlsx; *.rar; *.zip";
$(document).ready(function() {
var is_error = false;
$('#file_upload_50').uploadify({
'swf': basePath + '/uploadify/uploadify.swf',
'uploader': "uploader.php",
'height': 25,
'buttonText': "Upload",
'fileTypeExts': allowExts,
'fileTypeDesc': "Formats:" + allowExts,
'formData': {
'user_id': 50,
'company_id': 1
},
'onUploadError': function(file, errorCode, errorMsg, errorString) {
alert(errorMessage);
is_error = true;
},
'onUploadSuccess': function(file, data, response) {
var result = $.parseJSON(data);
if (!result.result) {
alert(result.error_msg);
is_error = true;
}
},
'onQueueComplete': function(queueData) {
if (!is_error) {
document.location.href = "result_page.html";
}
}
});
});
</script>
问题出在哪里?你能给我一些建议吗?我感到无助。谢谢。