1999-01-14 04:48:18 +03:00
|
|
|
<html>
|
|
|
|
<head>
|
1999-02-11 23:05:34 +03:00
|
|
|
<title> SilentDownload Test Page</title>
|
1999-01-14 04:48:18 +03:00
|
|
|
|
|
|
|
<SCRIPT LANGUAGE="JavaScript">
|
|
|
|
<!--
|
1999-02-11 23:05:34 +03:00
|
|
|
var task = SilentDownloadManager.Find("Silent Download Task 1");
|
1999-01-14 04:48:18 +03:00
|
|
|
|
1999-02-11 23:05:34 +03:00
|
|
|
if (task==null)
|
1999-01-14 04:48:18 +03:00
|
|
|
{
|
1999-02-11 23:05:34 +03:00
|
|
|
alert("\nSD: Task Not Found - New Task");
|
1999-01-14 04:48:18 +03:00
|
|
|
|
|
|
|
|
1999-02-11 23:05:34 +03:00
|
|
|
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");
|
|
|
|
|
1999-01-14 04:48:18 +03:00
|
|
|
}
|
|
|
|
|
1999-02-11 23:05:34 +03:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-01-14 04:48:18 +03:00
|
|
|
// -->
|
|
|
|
</SCRIPT>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
|