michielpost.nl

Added JavaScript events to the Silverlight Multi File Uploader

15-11-2008

JavaScript Events
For a better integration with your own website, the Silveright Multi File Uploader control has the following JavaScript events and properties:

Events:
- AllFilesFinished - Fires when all files are finished uploading (does not fire when Errors Occurred during upload)
- SingleFileUploadFinished - Fires when a single file succesfully uploaded
- ErrorOccurred - Fires when an error occurred during uploading

Properties:
The following properties can be read at any time
- TotalUploadedFiles: Total number of files uploaded
- TotalFilesSelected: Total number of files in the list
- Percentage: Percentage of total upload progress

See the included testpage (mpost.SilverlightMultiFileUploadTestPage.aspx) for example usage.

You can see the control in action here.

Comments


Brian 30-08-2009
How do I use the javascript events? something like this? function AllFilesFinished() { alert("done!"); }


New Comment

Name
E-mail (not published)
Comment
Enter the code shown: