[ Previous ] [ Contents ] [ Index ] [ Next ]

Tcl API Functions for ADPs

The following Tcl functions are available for use within ADPs. They are described in detail in the Tcl Developer's Guide on the specified pages.

Tcl Function

Brief Description

ns_adp_abort (see page 72 of Tcl Developer's Guide)

Aborts processing of the ADP file and throws away any output up to that point.

ns_adp_argc (see page 73 of Tcl Developer's Guide)

Returns the number of arguments passed to the ADP.

ns_adp_argv (see page 74 of Tcl Developer's Guide)

Returns the values of the arguments passed to the ADP.

ns_adp_bind_args (see page 75 of Tcl Developer's Guide)

Binds the ADP arguments to names.

ns_adp_break (see page 76 of Tcl Developer's Guide)

Aborts processing of the ADP file and flushes all output (from ns_puts or static HTML) up to the point where it was called. Nothing is output or executed after it is called.

ns_adp_dir (see page 77 of Tcl Developer's Guide)

Returns the directory in which the ADP resides.

ns_adp_include (see page 78 of Tcl Developer's Guide)

Writes the contents of the specified file to the page as if it were the argument to ns_puts. The ADP file is parsed before it is inserted into the page.

ns_adp_parse file (see page 79 of Tcl Developer's Guide)

Processes the specified ADP file and returns the result as a string.

ns_puts (see page 167 of Tcl Developer's Guide)

Writes a string or Tcl command output to the page.

ns_register_adptag (see page 174 of Tcl Developer's Guide)

Registers an ADP tag that you define.

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1996 America Online, Inc.