mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 21:55:31 +00:00
46 lines
823 B
HTML
46 lines
823 B
HTML
<html>
|
|
<head>
|
|
<title> SilentDownload Test Page</title>
|
|
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
<!--
|
|
var task = SilentDownloadManager.Find("Silent Download Task 1");
|
|
|
|
if (task==null)
|
|
{
|
|
alert("\nSD: Task Not Found - New Task");
|
|
|
|
|
|
task = new SilentDownloadTask();
|
|
|
|
task.Init( "Silent Download Task 1",
|
|
"http://grok/u/dougt/silentdl/tests/sol.exe",
|
|
"http://warp/u/dougt/silentdl/tests/sol.html");
|
|
|
|
}
|
|
|
|
|
|
switch (task.state)
|
|
{
|
|
case SilentDownloadTask.SDL_NOT_INITED:
|
|
case SilentDownloadTask.SDL_NOT_ADDED:
|
|
case SilentDownloadTask.SDL_STARTED:
|
|
case SilentDownloadTask.SDL_SUSPENDED:
|
|
case SilentDownloadTask.SDL_DOWNLOADING_NOW:
|
|
case SilentDownloadTask.SDL_ERROR:
|
|
break;
|
|
|
|
case SilentDownloadTask.SDL_COMPLETED:
|
|
alert("\nSD: Task Complete");
|
|
|
|
break;
|
|
}
|
|
|
|
|
|
|
|
// -->
|
|
</SCRIPT>
|
|
|
|
</head>
|
|
|