gecko-dev/silentdl/tests/Example.html

46 lines
823 B
HTML
Raw Normal View History

<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>