logo



Parameters - MyDownloader
Below you will find a list of parameters. With these parameters MyDownloader can be configured. Put the parameters in the HTML (download) page inside the applet tag.

dtbackgroundColor
dtbase64Encoded
dtcurrentDirectory
dtdisableCopyAndPaste
dtdisableDragAndDrop
dtfile_X
dtfiles
dtfolderChooser
dticonDownload
dtlanguage
dtlookAndFeel
dtselectAllFiles
dtshowDownloadButton
dtshowThumbNailsInApplet
dtshowToolTip
dtsuccessURL
dttarget
dtthumbnail_X


backgroundColor (optional) top
description: Defines the applet's background color. The color must be given in hexidecimal format.
since: version 1.5
format: hexidecimal
default: #ffffff (white)
example: #ffffff
tag example: <param name="backgroundColor" value="#ffffff">

base64Encoded (optional) top
description: Indicates that the parameters 'files' or 'file_X' are base64encoded. If true the base64encoded URL's are decoded in the applet.
since: version 1.5
format: true or false
default: false
example: true
tag example: <param name="base64Encoded" value="true">

currentDirectory (optional) top
description: The default directory of the filedialog. If this parameter is not set the filedialog will be opened in the last used directory.
since: version 1.7
format: String
default: no default
example: C://temp
tag example: <param name="currentDirectory" value="C://temp">

disableCopyAndPaste top
description: Disables the copy and paste functionality.
since: version 1.4
format: true or false
default: false
example: true
tag example: <param name="disableCopyAndPaste" value="true">

disableDragAndDrop top
description: Disables the drag and drop functionality.
since: version 1.4
format: true or false
default: false
example: true
tag example: <param name="disableDragAndDrop" value="true">

file_X top
description: Defines the file to download. The URL of a file can be a full URL or a relative one. The filename of the URL needs to be urlencoded if the filename contains spaces. Append '#:#<filename>' to the URL to store the file with a different name. To store the file in a new directory append '#:#<directory>/<filename>'. Replace the X of files_X with a digit. The first digit needs to be a 1. This parameter can only be used if the parameter 'files' is not present.
since: version 1.4
format: url[#:#filename] the part [ ] is optional
default: No default.
example: http://www.javaatwork.com/java-download-applet/files/castle.jpg#:#castle.jpg
tag example: <param name="file_1" value="http://www.javaatwork.com/java-download-applet/files/castle.jpg#:#castle.jpg"> <param name="file_2" value="http://www.javaatwork.com/java-download-applet/files/kid.jpg">

files top
description: Defines a list of files to download. The URL of a file can be a full URL or a relative one. The filename of the URL needs to be urlencoded if the filename contains spaces. Add '#:#<filename>' to store the file with a different name. To store the file in a new directory add '#:#<directory>/<filename>' See also the parameter 'files_X' for defining the files separately.
format: CSV
default: No default.
example: http://www.javaatwork.com/java-download-applet/files/mydownloader.txt; http://www.javaatwork.com/java-download-applet/files/castle.jpg; http://www.javaatwork.com/java-download-applet/files/kid.jpg
tag example: <param name="files" value="http://www.javaatwork.com/java-download-applet/files/mydownloader.txt; http://www.javaatwork.com/java-download-applet/files/castle.jpg#:#images/castle.jpg; http://www.javaatwork.com/java-download-applet/files/kid.jpg">

folderChooser top
description: Defines the folderchooser. Possible values are '1' (custom folderchooser) and '2' (Java folderchooser).
since: version 1.5
format: 1 or 2
default: 1
example: 1
tag example: <param name="folderChooser" value="1">

iconDownload top
description: Adds an icon to the download button.
format: An absolute or relative URL.
default: No default.
example: http://www.javaatwork.com/images/download.gif
tag example: <param name="iconDownload" value="http://www.mycompany.com/images/download.gif">

lookAndFeel (optional) top
description: Defines the look and feel. Possible values are '1' (default Java look and feel) and '2' (Windows look and feel).
since: version 1.5
format: 1 or 2
default: 1
example: 2
tag example: <param name="lookAndFeel" value="2">

language (optional) top
description: MyDownloader is available in:

- Danish(da)
- Dutch(nl)
- English(en)
- Finnish(fi)
- Icelandic(is)
- Italian(it)
- French(fr)
- German(de)
- Norwegian(no)
- Polish(pl)
- Portuguese(pt)
- Spanish(es)
- Swedish(sv)

If this parameter is not used the language of the operating system will be used. If this language is not available than English will be used.
format: da, de, en, it, fi, fr, is, nl, no, pl, pt, es, sv
default: en
example: de
tag example: <param name="language" value="de">

selectAllFiles top
description: If true all files are selected for download when MyDownloader opens.
since: version 1.3
format: true or false
default: false
example: true
tag example: <param name="selectAllFiles" value="true">

showDownloadButton top
description: Shows the download button.
format: true or false
default: true
example: false
tag example: <param name="showDownloadButton" value="false">

showThumbNailsInApplet top
description: Shows a thumbnail in the applet when a jpeg is selected. See also the parameter thumbnail_X.
format: true or false
default: false
example: true
tag example: <param name="showThumbNailsInApplet" value="true">

showToolTip top
description: Shows a tooltip of a selected file.
since: version 1.4
format: true or false
default: true
example: false
tag example: <param name="showToolTip" value="false">

successURL top
description: After one of the files have been successfully downloaded, the user is redirected to another URL (confirmation page).
since: version 1.4
format: an absolute or relative URL
default: no default
example: http://www.mycompany.com/success.html
tag example: <param name="successURL" value="http://www.mycompany.com/success.html">

target top
description: A string indicating where to display the success (confirmation) page. Possible values:
"_self"Show the success page in the window and frame that contain the applet.
"_parent"Show the success page in the applet's parent frame. If the applet's frame has no parent frame, acts the same as "_self".
"_top"Show the success page in the top-level frame of the applet's window. If the applet's frame is the top-level frame, acts the same as "_self".
"_blank"Show the success page in a new, unnamed top-level window.
<name>Show the success page in the frame or window named <name>. If a target named <name> does not already exist, a new top-level window with the specified name is created, and the document is shown there.
since: version 1.7
format: String
default: _self
example: _self
tag example: <param name="target" value="_self">

thumbnail_X top
description: The URL of the thumbnail of the file with parameter file_X. If the applet parameter 'showThumbnailsInApplet' is true MyDownloader creates a thumbnail of the original image. This can take some time. If a thumbnail of the file is already available on the server, MyDownloader can retrieve this thumbnail with the parameter thumbnail_X.
since: version 1.7
format: an absolute or relative URL
default: No default.
example: http://www.mycompany.com/thumbnail1.jpg
tag example: <param name="thumbnail_1" value="http://www.mycompany.com/thumbnail1.jpg">
<param name="thumbnail_2" value="http://www.mycompany.com/thumbnail2.jpg">


dot