Netscape MANAGEMENT SYSTEM 6.01 - CUSTOMIZATION Manual page 23

Table of Contents

Advertisement

fixed.preserved = "foo";
var recordCount = 0;
var record;
record = new Object;
record.HTTP_PARAMS = new Array;
record.HTTP_HEADERS = new Array;
record.AUTH_TOKEN = new Array;
record.SERVER_ATTRS = new Array;
recordSet[recordCount++] = record;
result.header = header;
result.fixed = fixed;
result.recordSet = recordSet;
</SCRIPT>
On its own, the base JavaScript is not very useful. Data pertinent to the response is
added to this framework by the interface that creates the response. For example, an
interface that lists a certificate might add the base-64 encoding of the certificate to
the
object.
record
The
object contains most of the useful data, including the
result
object, and the
fixed
one of these components of the result object. The purpose of these components can
be summarized as follows:
The
object contains variables and data that apply generally to all parts
header
of the response. For example, a response including several certificates would
store the total number of certificates returned in the header, while individual
certificate data would be stored in
are accessed as
result.header. variableName
The
object contains information that is fixed and independent of the
fixed
data being returned in the response. Such data includes the hostname and port
of the CMS server that handled the request, which is useful for creating HTTP
forms that use the server and port that generated the response. Variables in the
object are accessed as
fixed
The
array is available to any response that returns certificates. Data
recordSet
for each certificate is returned in variables in a
object is then added to the
object are accessed by an index into the
result.recordSet[i]. variableName
The following table describes the format an purpose of all the data included in the
base
<CMS_TEMPLATE>
array. Responses will usually add relevant data to
recordSet
recordSet
result.fixed. variableName
recordSet
JavaScript:
JavaScript Used By All Interfaces
elements. Variables in the header
.
.
object. Each
record
array. Variables in a particular record
array:
recordSet
.
Chapter 1
object, the
header
record
Before You Begin
23

Advertisement

Table of Contents
loading

This manual is also suitable for:

Certificate management system 6.01

Table of Contents