Demos

openOnComplete: Toggle the "Open File On Completion" setting.

The openOnComplete property is used to toggle the option offering the user the option of opening the file once the download completes. By default, the user is shown the offer to open the file with the checkbox selected; that is, the default is TRUE. Setting openOnComplete to false shows the user the offer without the checkbox already selected.

The code shown below was run when this page loaded. The dlmContainer and startDLM HTML elements are already defined in this page.

Click the Start Download link to begin. If you haven't installed the NetSession client, you'll be prompted to agree to the end user license agreement (EULA) while installing the client.

Code

    DLMHelper.uploadEnabled = true;

    var url = "http://client.akamai.com/install/test-objects/50MB.bin";
    var dlm = new DLM(DLMCID, url, null, "dlmContainer", "startDLM");
    dlm.downloadPath = "prompt";
    dlm.openOnComplete = false;
    dlm.originOnly = false; 
              

Client-side Downloads demonstrations