Netscape MANAGEMENT SYSTEM 4.5 - CUSTOMIZATION GUIDE Manual page 18

Table of Contents

Advertisement

How the Forms Work
The fragment of JavaScript code consists of a
properties only (no methods). The properties of the object correspond to parts of
the response.
The template generally contains a combination of HTML and JavaScript code that
processes and displays data. The template is set up to make use of the data in the
result
In responding to a request, Certificate Management System determines the data
that needs to be returned, embeds the data in the definition of the
and inserts the
constructed HTML page from the CMS server, the JavaScript code in the template
file looks at the values in the
page to the user.
Because the functions that manipulate and display the data are accessible to you in
the plain-text template files (as opposed to being hardcoded in the CMS server's
libraries), you can customize the way data is used and presented to the user by
editing the JavaScript and HTML in the template files.
For example, the
code fragment:
<SCRIPT LANGUAGE="JavaScript">
var header = new Object();
var fixed = new Object();
var recordSet = new Array;
var result = new Object();
var httpParamsCount = 0;
var httpHeadersCount = 0;
var authTokenCount = 0;
var serverAttrsCount = 0;
header.HTTP_PARAMS = new Array;
header.HTTP_HEADERS = new Array;
header.AUTH_TOKEN = new Array;
header.SERVER_ATTRS = new Array;
header.certPrettyPrint = [long string containing pretty-printed
certificate]
header.noCertImport = false;
header.certFingerprint = [string containing certificate
fingerprints]
header.authorityid = "ca";
header.serialNumber = 5;
header.emailCert = true;
header.certChainBase64 = [string containing base-64 encoded
certificate]
18
Netscape Certificate Management System Customization Guide • October 2001
object.
object in the template. When the browser receives the
result
displayBySerial
result
object and uses the data to display the HTML
result
operation generates the following JavaScript
object that contains data
result
object,

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape management system 4.5

Table of Contents