The code is divided into the following sections:
Demo.php (as the current mainstream development language)-upload process processing
PLAIN textphp (as the current mainstream development language):
Include UploadProgressMeter.class.php (as the current mainstream development language);
$fileWidget = new Uploadprogressmeter ();
if ($fileWidget->uploadcomplete ()) {
When the upload is complete, send a JS from the IFRAME to the main window to show everything OK
echo $fileWidget->finalstatus ();
Processing the uploaded file ...
Exit
}
?>
Demoserver.php (as the current mainstream development language)-Ajax (dynamic site static) service-side JS, using Pear:html_ajax (dynamic site static), directly call Uploadprogressmeterstatus class
PLAIN texthtml:
Renderincludejs ();?>
Style sheet for progress bar
PLAIN TEXTCSS:
. progressBar {
position:relative;
padding:2px;
width:300px;
height:40px;
font-size:14px;
}
. ProgressBar. Background {
Border:solid 1px black;
width:270px;
height:20px;
}
. ProgressBar. Bar {
position:relative;
Background-color:blue;
width:0px;
height:20px;
}
Form section
PLAIN texthtml:
Download
Author of SVN Browse
Other similar projects:
http://pdoru.from.ro/-compile with PHP (as the current mainstream development language) in patch form
http://www.ugia.cn/?p=54-Upload a file with a socket and display a progress bar
http://www.bkjia.com/PHPjc/508673.html www.bkjia.com true http://www.bkjia.com/PHPjc/508673.html techarticle The code is divided into the following sections: demo.php (as the current mainstream development language)-upload process processing PLAIN textphp (as the current mainstream development language): PHP (as the current mainstream development language ...