Sorry, swfuploadphp's predecessors. how can this problem be solved?

Source: Internet
Author: User
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'
},






......

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.