U-Upload Pro Scripting interface -------------------------------------------- **** For a complete demo of how this interface can be used, see demo2.html in the ZIP archive. Note: LiveConnect (required for using the scripting interface) is not supported on MacOS. U-Upload pro provides a way to customize the functionallity even further to suit your needs. It does this via it's scripting interface. U-Upload Pro has a group of functions that can be accessed through JavaScript in your HTML page. The following list of methods are available for scripting the U-Upload Pro applet: void browse () - Opens the browse window for selecting file(s) and/or directory(s) void upload () - Initiates the upload of the selected files. This function only works in registered versions. void clearFiles () - Clears the group offiles to be transferred void addFileFilter (String filter) - Adds a file fileter of form "All files (*.*)" to the File dialog void clearFileFilters () - Removes all of the file filters from the file dialog void addFile (String fullFilePath) - Adds a file to the list of files to be transferred void setUsername (String user) - Sets the username for the desired FTP server void setPassword (String pass) - Sets the password for the desired FTP server void setServer (String server) - Sets the hostname for the desired ftp server void setPort (String port) - Sets the port on which thedesired FTP server is listening String getLog () - Returns a log of all the FTP commands and responses String getFiles () - Return a semi-colon delimited list of the selected files void setZip (String zip) - Accepts "true" or "false", tuns auot-zip on/off void setZipFileName (String filename) - Sets the desired zip file name void setPassive (String passive) - Accepts "true" or "false", togles U-Upload between active and passive mode void setFileDialogTitle (String title) - Sets the title of the Browse dialog void setCallURLAfterTransfer (String URL) - Sets this URL to be called when the transfer is complete void setLocalDir (String ldir) - The initial directory of the Browse dialog void setRemoteDir (String rdir) - This will be the directory where files are stored on the FTP server void setCreateDirectoryOnStartup (String rdir) - This directory will be created on the FTP server **** For a complete demo of how this interface can be used, see demo2.html