Let users receive files via online download manager
Submitted on June 21, 2003
This article describes how to use the Clever Internet DownLoader ActiveX component, available from the Internet, in order integrate it into the web to send physically multiple files to the user local hard disk.
For your convenience we provide the following downloads:
Many web masters provide their users with the ability to download the web resources they publish with more control than offerred by standard web browsers such as Microsoft Internet Explorer, Netscape Navigator, Mozilla, Opera or others. This may be a progress indication, resuming features, more detailed resource information or some animation during the downloading process. In addition they do not want users to get and install a special download managers for this issue.
The best solution is to use ActiveX control and a special web page adapted to download, install and use it. The actual process of downloading is hidden from the user, while in progress.
The following code shows how to make the HTML tag which gets the latest downloader version from the server and sets up its properties to their default values.
If you whish to distribute DownLoader ActiveX control via the Internet, you should pack it as a signed Cabinet (CAB) file. The Digital Signature can be purchased from Verisign or from THAWTE.
The CAB file contains a compressed version of the control plus information about how your control is to be installed, for example, which DLLs need to be installed along with the OCX.
You have to publish both the clComDownLoader_js.htm (clComDownLoader_vbs.htm) and the clDownLoader.cab files on your web server in order to make it work properly.
In case of publishing the cldownldr.cab on your web server you have to modify the cldownldr.cab URL path to its correct value within the "codebase" attribute of the "object" tag in the clComDownLoader_js.htm (clComDownLoader_vbs.htm) file.
To provide the information about how the control is to be installed, or whether or not the user's Downloader version is out-of-date and the latest version needs to be downloaded from the server or any other information, the CAB file should contain an information file inside.
A sample of the contents of such an info file is shown below in the following example:
Both the js and the vbs demo codes contain a simple HTML page which uses the DownLoader control for downloading World Wide Web resources, getting resource information and displaying the preview of the resource being downloaded.
To learn more about packaging and signing cab files and automatic version updating please refer to "Packaging ActiveX Controls" article available in the MSDN Library and Microsoft online-resource - http://msdn.microsoft.com.
With best regards,