|
Table Of Contents
|
Proflash Upload - JavascriptStarting the Upload from JavascriptYou can integrate the PFU into your form and start the upload when the submit button is clicked using the following code. Sample code var flash; if(navigator.appName.indexOf("Microsoft") != -1) { flash = window.ProFlashUpload1; }else { flash = window.document.ProFlashUpload1; } flash.upload(); Tip: Use the showUploadButton="no" option to hide the built-in upload button on ProFlashUpload Javascript CallbacksProFlashUpload can call your javascript functions with a report after each file has uploaded (or failed to) and when all files have finished uploading using attributes jsOnFileUpload and jsOnComplete jsOnFileUploadUse the jsOnFileUpload attribute to pass ProFlashUpload the name of the Javascript function to call after each file has finished uploaded or after a file has failed to upload. Your Javascript function should be in the following format:
jsOnCompleteUse the jsOnComplete attribute to pass ProFlashUpload the name of the Javascript function to call when all files have been uploaded. Your Javascript function should be in the following format:
|