Accessibility
 
Home > Products > Authorware > Support > Developing For The Web
Macromedia Authorware Support Center - Developing For The Web
Editing the JavaScript code

The JavaScript code in Download.htm (in the Autoinstall folder) contains 15 variables that you can change. It's not necessary to change the variables unless you change the locations of the files in the Autoinstall folder or its subfolders.

Download.htm contains comments with information about the variables you can change and the effect of the changes you make. The information in the file may be newer and more accurate than the information given here.

Don't change any other parts of the JavaScript code unless you're certain what the result will be.

SERVER_BASE
Do not edit the variable SERVER_BASE unless you move Download.htm to a folder other than the folder containing the Awarewebplayer folder.

JAR_BASE
JAR_BASE is the URL of the folder containing the JAR files Install.jar and Instal16.jar. If you change the location of the JAR files, change the information in this line of code:

var JAR_BASE = SERVER_BASE + "awarewebplayer/download/smart/jars/english/";
CONTROL_BASE
CONTROL_BASE is the URL of the folder containing the Authorware Web Player control for ActiveX CAB files that are used by Internet Explorer. If you change the location of the CAB files, change the information in this line of code:

var CONTROL_BASE = SERVER_BASE + "awarewebplayer/download/smart/cab/";
AWARE_CONTROL_PAGE
AWARE_CONTROL_PAGE contains the name of the HTML document located in the CONTROL_BASE folder that's used to trigger the installation of the Authorware Web Player control for ActiveX for Internet Explorer. If you change the name of the document or its location, change the information in this line of code:

var AWARE_CONTROL_PAGE = "default.htm"; 

DEFAULT_PAGE
DEFAULT_PAGE is the HTML document where the code goes if it can't handle the operating system that's in use or if the browser in use is neither Internet Explorer nor Netscape. If you change the name of the document or its location, change the information in this line of code:

var DEFAULT_PAGE = SERVER_BASE + "awarewebplayer/download/default.htm"; 
DEFAULT_PAGE_HEIGHT and DEFAULT_PAGE_WIDTH
If you change the height and width of the default page, change the information in this line of code:

var DEFAULT_PAGE_HEIGHT = 480; var DEFAULT_PAGE_WIDTH = 640; 

gInstallerBase
The variable gInstallerBase contains the location of the Web Player EXE files. If you change the location of the EXE files, change the information in this line of code:

var gInstallerBase = SERVER_BASE + "awarewebplayer/download/"; 

JAR_HTML_BASE
JAR_HTML_BASE contains the URL of the folder where the JAR status pages (Begin.htm, Done.htm, and Error.htm) are located. If you change the location of the files, change the information in this line of code:

var JAR_HTML_BASE = SERVER_BASE + "awarewebplayer/download/smart/jarstatus/"; 
gBeginPage
The variable gBeginPage contains the page that provides feedback to users as the autoinstallation process downloads JAR files. The default page is Begin.htm. If you change the name of the page, change the information in this line of code:

var gBeginPage = JAR_HTML_BASE + "begin.htm"; 

gDonePage
The variable gDonePage contains the page that's downloaded at the end of the JAR installation process. This page launches a web-packaged Authorware example file. The default page is Done.htm. If you change the name of the page, change the information in this line of code:

var gDonePage = JAR_HTML_BASE + "done.htm"; 

gErrorPage
The variable gBeginPage contains the page that displays error messages about problems that occur during the JAR download or installation process. The default page is Error.htm. If you change the name of the page, change the information in this line of code:

var gErrorPage = JAR_HTML_BASE + "error.htm"; 

CONFIRM_MESSAGE
CONFIRM_MESSAGE contains the text that prompts users to confirm that they want to install the Authorware Web Player. If you want to change the message, put the text in this line of code:

var CONFIRM_MESSAGE = "Are you sure you want to install Macromedia Authorware Web Player?"; 
JAR_STATUS_PAGE_HEIGHT and JAR_STATUS_PAGE_WIDTH
The JAR_STATUS size variables contain the height and width of the pages where the prompts and the example file appear. If you want to adjust the size of the pages, change the settings in these two lines of code:
var JAR_STATUS_PAGE_HEIGHT = 360; var JAR_STATUS_PAGE_WIDTH = 470; 
USE_JAR_FILES
Set the variable USE_JAR_FILES to true if you want Netscape browsers to use JAR files and smart installation. Set the variable to false if you want Netscape browsers to download the appropriate EXE file instead. Change the setting in this line of code:

var USE_JAR_FILES = true; 


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