Sorry, swfuploadphp's predecessors! When I use swfupload to upload images, the images can be uploaded normally, but I want to use the JS code: functionuploadSuccess (file, serverData) {& nbsp; try {& nbsp; varpro begged swfupload php's predecessors!
When I use swfupload to upload images, the images can be uploaded normally, but I want to use the JS code:
Function uploadSuccess (file, serverData ){
Try {
Var progress = new FileProgress (file, this. customSettings. progressTarget );
Progress. setComplete ();
Progress. setStatus ("completed .");
Progress. toggleCancel (false );
Document. getElementById ("_ upfiles"). innerHTML + = ''+ serverData + 'delete ';
} Catch (ex ){
This. debug (ex );
}
}
And then return to the index. php page. the index. php page has the following code:
This code is used to display the path of images uploaded in batches by swfupload. what should I do? if you have any experts to help you, I can send more. thank you. If you can help me, I would like to attach my source code. Looking forward to ING!
------ Solution --------------------
JScript code
// Upload the ID custom_settings: {progressTarget: "fsUploadProgress", cancelButtonId: "btnCancel", img: '_ upfiles'}, document. getElementById (this. customSettings. img ). value + = '|' + serverData;
------ Solution --------------------
Send me an email. I will give you an instance. Q is forbidden by the company. do not use qq mail.
------ Solution --------------------
Discussion
Reference:
JScript code
// Upload the ID to the submission page
Custom_settings :{
ProgressTarget: "fsUploadProgress ",
CancelButtonId: "btnCancel ",
Img: '_ upfiles'
},
......