从最后更新的chrome(版本36.0.1985.125 m)我有uplodify插件/闪存的问题. Chrome显示Aw,Snap页面或有时他死了,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>
哪里有问题?你能给我一些建议吗我很无奈谢谢