Documentation
JavaScript callbacks
JavaScript callbacks should be used when it is necessary to notify parent HTML document about particular uploader event.
For example, HTML document could be interested to redirect user to some URL upon queue upload end. JavaScript callbacks in conjuncion with applet exposed interface is a solution for that problem.
In order to receive events it is necessary:
- Set applet parameter corresponding to desired event to "true" (see Applet configuration)
- Declare and implement corresponding JavaScript function in parent HTML document.
NB! Do not use linked JavaScript files, this might not work.
JavaScript functions prototypes:
/**
* files reset notification
*/
function uploaderFilesReset( uploader ) {
}
/**
* file added notification
*/
function uploaderFileAdded( uploader, file ) {
}
/**
* file removed notification
*/
function uploaderFileRemoved( uploader, file ) {
}
/**
* file moved notification
*/
function uploaderFileRemoved( uploader, file, oldIndex ) {
}
/**
* file status changed notification
*/
function uploaderFileStatusChanged( uploader, file ) {
}
/**
* uploader status changed notification
*/
function uploaderStatusChanged( uploader ) {
}
The arguments of functions are:
- uploader - an object implementing IUploader interface.
- file - an object implementing IUploadFile interface.
You can see sample JavaScript code that use exposed interfaces in a demo section.
JLjs
JLjs is a javascript wrapper around jumploader API and callbacks, that provide more efficient way for programming jumploader. This library developed and contributed by jumploader user, not jumploader autor. Please visit jljs project home.
| advertising | — easy and efficient web file manager. |