Javascript 使用uploadify上传图像后,请刷新图像

Javascript 使用uploadify上传图像后,请刷新图像,javascript,jquery,file-upload,uploadify,Javascript,Jquery,File Upload,Uploadify,实际上,当我使用Uploadify脚本上载图像时,我正在尝试刷新图像。图像上载成功,但在我的query.Uploadify.js文件中未触发onUploadSuccess java脚本函数 onUploadSuccess // Triggered when a file is uploaded successfully 请你能帮帮我吗?谢谢 我的java脚本是: $(function () { $("#file_upload").uploadify({

实际上,当我使用Uploadify脚本上载图像时,我正在尝试刷新图像。图像上载成功,但在我的query.Uploadify.js文件中未触发onUploadSuccess java脚本函数

onUploadSuccess  // Triggered when a file is uploaded successfully
请你能帮帮我吗?谢谢
我的java脚本是:

 $(function () {
                $("#file_upload").uploadify({
                    'swf': 'Resources/ImgUpload/uploadify.swf',
                    'uploader': 'VBHandler.ashx',
                    'cancelImg': 'Resources/ImgUpload/cancel.png',
                    'buttonText': 'Add Photos',
                    'fileDesc': 'Image Files',
                    'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
                    'multi': true,
                    'auto': true,
                    'formData': {
                        "id": "<%=HfID.Value%>",
                        'onUploadSuccess': function (file, data, response) {
                            // Load the swfupload settings
                            alert('upload');
                        }
                    }
                }); 
$(函数(){
$(“#文件上传”).uploadify({
“swf”:“Resources/ImgUpload/uploadify.swf”,
'uploader':'VBHandler.ashx',
'cancelImg':'Resources/ImgUpload/cancel.png',
'按钮文字':'添加照片',
'fileDesc':'Image Files',
“fileExt”:“*.jpg;*.jpeg;*.gif;*.png”,
"多":对,,
“自动”:正确,
“formData”:{
“id”:“,
“onUploadSuccess”:函数(文件、数据、响应){
//加载swfupload设置
警报(“上传”);
}
}
}); 

我使用的是Uploadify v3.2版

onUploadSuccess
不得位于
表单数据中。因此请尝试以下方法:

 $(function () {
                $("#file_upload").uploadify({
                    'swf': 'Resources/ImgUpload/uploadify.swf',
                    'uploader': 'VBHandler.ashx',
                    'cancelImg': 'Resources/ImgUpload/cancel.png',
                    'buttonText': 'Add Photos',
                    'fileDesc': 'Image Files',
                    'fileExt': '*.jpg;*.jpeg;*.gif;*.png',
                    'multi': true,
                    'auto': true,
                    'formData': {
                        "id": "<%=HfID.Value%>"
                    },
                    'onUploadSuccess': function (file, data, response) {
                            // Load the swfupload settings
                            alert('upload');
                    }
                }); 
$(函数(){
$(“#文件上传”).uploadify({
“swf”:“Resources/ImgUpload/uploadify.swf”,
'uploader':'VBHandler.ashx',
'cancelImg':'Resources/ImgUpload/cancel.png',
'按钮文字':'添加照片',
'fileDesc':'Image Files',
“fileExt”:“*.jpg;*.jpeg;*.gif;*.png”,
"多":对,,
“自动”:正确,
“formData”:{
“id”:”
},
“onUploadSuccess”:函数(文件、数据、响应){
//加载swfupload设置
警报(“上传”);
}
}); 

谢谢兄弟,我想这就是我所缺少的。