gecko-dev/silentdl/tests/Example.html
1999-02-11 20:05:34 +00:00

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>