AUTHORWARE 5 ATTAIN developing for the web

Customizing the HTML files

In addition to Download.htm, the autoinstallation process uses three other HTML pages when it downloads JAR files:

Begin.htm provides feedback to users as the autoinstallation process downloads the JAR files.
Done.htm is downloaded at the end of the installation process. This page launches a web-packaged Authorware example file.
Error.htm displays error messages about problems that occur during the download or installation process.

If you change the name or location of any of these files, change the corresponding variable (gBeginPage, gDonePage, or gErrorPage) in Download.htm. See Editing the JavaScript code.


Customizing Begin.htm
If you create a new Begin.htm page, place the following line of code in the <HEAD> section of the new HTML page:
 

<script src="status.js" language="JavaScript"></script>


Customizing Done.htm
If you create a new Done.htm page, place the following code in the <HEAD> section of the new HTML page:
 

<p>When the download of the Authorware Web Player is complete, an animation will appear below. </p>
<p><OBJECT CLASSID="CLSID:15B782AF-55D8-11D1-B477-006097098764"
ID="AuhtorwareWebPLayer"
WIDTH=320 HEIGHT=80
CODEBASE="awswaxf.cab#version=5,0,0,59">
<PARAM NAME="SRC" VALUE="test/cabload.aam">
<PARAM NAME="PALETTE" VALUE="background">
<EMBED height=80 width=320 SRC="test/cabload.aam" palette="background" pluginspage="http://www.macromedia.com/
shockwave/download/alternates/index.html">
</EMBED></OBJECT></p>

If you change the example file, change Cabload.aam in the preceding code to the name of the new file. Also change the path if necessary. The "awswaxf" and "5,0,0,59" strings above are for use with the "full" installer. If you are using the "minimal" installer, use "awswaxm.cab" and "5,0,0,58" instead. See Changing the example file.


Customizing Error.htm
If you create a new Error.htm page, place the following code in the <BODY> section of the new HTML page:
 

<SCRIPT SRC="status.js" LANGUAGE="JavaScript">
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide from stupid browsers
var errormsg = getarg();
document.writeln(`<html><head></head><body bgcolor="#ffffff">');
document.writeln(`h1 align="CENTER">Installation Error.</h1>'); 
document.writeln("<blockquote><h3>" + errormsg + " </h3></blockquote>");
document.writeln( "</body></html>" ); 
//Stop hiding -->
</SCRIPT>

To Table of Contents Back to Previous document Forward to next document