The HTP
(hypertext procedures) and HTF
(hypertext functions) packages generate HTML tags. For example, the HTP
.ANCHOR
procedure generates the HTML anchor tag, <A>
.
See Also:
For more information about implementation of this package:This chapter contains the following topics:
Operational Notes
Rules and Limits
Examples
For every HTP procedure that generates one or more HTML tags, there is a corresponding HTF function with identical parameters with the following exception:
The PRINTS Procedure and the PS Procedure do not have HTF function equivalents. Use the ESCAPE_SC Function or the ESCAPE_URL Function if you need a string conversion function. Note that while there is a ESCAPE_SC Procedure that performs the same operation as the PRINTS Procedure and the PS Procedure, there is no procedural equivalent for the ESCAPE_URL Function.
The FORMAT_CELL Function does not have an HTP equivalent. The function formats column values inside an HTML table using TABLEDATA Function which does have an HTP equivalent in the TABLEDATA Procedure. The advantage of this using the FORMAT_CELL Function is that it allows for better control over the HTML tables.
The function versions do not directly generate output in your Web page. Instead, they pass their output as return values to the statements that invoked them. Use these functions when you need to nest calls. To print the output of HTF functions, call the functions from within the HTP.PRINT
procedure. It then prints its parameters to the generated Web page.
If you use values of the LONG datatype in procedures such as HTP
.PRINT
, HTP
.PRN
, HTP
.PRINTS
, HTP
.PA
or OWA_UTIL
.CELLSPRINT
, only the first 32 K of the LONG
data is used. The LONG
data is bound to a VARCHAR2
datatype in the procedure.
The following commands generate a simple HTML document:
CREATE OR REPLACE PROCEDURE hello AS BEGIN HTP.HTMLOPEN; -- generates <HTML> HTP.HEADOPEN; -- generates <HEAD> HTP.TITLE('Hello'); -- generates <TITLE>Hello</TITLE> HTP.HEADCLOSE; -- generates </HEAD> HTP.BODYOPEN; -- generates <BODY> HTP.HEADER(1, 'Hello'); -- generates <H1>Hello</H1> HTP.BODYCLOSE; -- generates </BODY> HTP.HTMLCLOSE; -- generates </HTML> END;
HTMLOPEN Procedure, HTMLCLOSE Procedure - generate <HTML>
and </HTML>
HEADOPEN Procedure, HEADCLOSE Procedure - generate <HEAD>
and </HEAD>
BODYOPEN Procedure, BODYCLOSE Procedure - generate <BODY>
and </BODY>
COMMENT Procedure - generates <!-- and -->
BASE Procedure - generates <BASE>
LINKREL Procedure - generates <LINK>
with the REL
attribute
LINKREV Procedure - generates <LINK>
with the REV
attribute
TITLE Procedure - generates <TITLE>
META Procedure - generates <META>
SCRIPT Procedure - generates <SCRIPT>
STYLE Procedure - generates <STYLE>
ISINDEX Procedure - generates <ISINDEX>
APPLETOPEN Procedure, APPLETCLOSE Procedure - generate <APPLET>
and </APPLET>
PARAM Procedure - generates <PARAM>
OLISTOPEN Procedure, OLISTCLOSE Procedure - generate <OL>
and </OL>
ULISTOPEN Procedure, ULISTCLOSE Procedure - generate <UL>
and </UL>
DLISTOPEN Procedure, DLISTCLOSE Procedure- generate <DL>
and </DL>
DLISTTERM Procedure - generates <DT>
DLISTDEF Procedure - generates <DD>
DIRLISTOPEN Procedure, DIRLISTCLOSE Procedure - generate <DIR>
and </DIR>
LISTHEADER Procedure - generates <LH>
LISTINGOPEN Procedure, LISTINGCLOSE Procedure - generate <LISTING>
and </LISTING>
MENULISTOPEN Procedure - generate <MENU>
and </MENU>
LISTITEM Procedure - generates <LI>
FORMOPEN Procedure, FORMCLOSE Procedure - generate <FORM>
and </FORM>
FORMCHECKBOX Procedure - generates <INPUT TYPE="CHECKBOX">
FORMHIDDEN Procedure - generates <INPUT TYPE="HIDDEN">
FORMIMAGE Procedure - generates <INPUT TYPE="IMAGE">
FORMPASSWORD Procedure - generates <INPUT TYPE="PASSWORD">
FORMRADIO Procedure - generates <INPUT TYPE="RADIO">
FORMSELECTOPEN Procedure, FORMSELECTCLOSE Procedure - generate <SELECT>
and </SELECT>
FORMSELECTOPTION Procedure - generates <OPTION>
FORMTEXT Procedure - generates <INPUT TYPE="TEXT">
FORMTEXTAREA Procedure - generate <TEXTAREA>
FORMTEXTAREAOPEN Procedure, FORMTEXTAREACLOSE Procedure - generate <TEXTAREA>
and </TEXTAREA>
FORMRESET Procedure - generates <INPUT TYPE="RESET">
FORMSUBMIT Procedure - generates <INPUT TYPE="SUBMIT">
TABLEOPEN Procedure, TABLECLOSE Procedure - generate <TABLE>
and </TABLE>
TABLECAPTION Procedure - generates <CAPTION>
TABLEROWOPEN Procedure, TABLEROWCLOSE Procedure - generate <TR>
and </TR>
TABLEHEADER Procedure - generates <TH>
TABLEDATA Procedure - generates <TD>
HR Procedure, LINE Procedure - generate <HR>
IMG Procedure, IMG2 Procedure - generate <IMG>
ANCHOR Procedure, ANCHOR2 Procedure - generate <A>
MAPOPEN Procedure, MAPCLOSE Procedure - generate <MAP>
and </MAP>
HEADER Procedure - generates heading tags (<H1>
to <H6>
)
PARA Procedure, PARAGRAPH Procedure - generate <P>
PRN Procedures, PRINT Procedures - generate any text that is passed in
PRINTS Procedure, PS Procedure - generate any text that is passed in; special characters in HTML are escaped
PREOPEN Procedure, PRECLOSE Procedure - generate <PRE>
and </PRE>
BLOCKQUOTEOPEN Procedure, BLOCKQUOTECLOSE Procedure - generate <BLOCKQUOTE>
and </BLOCKQUOTE>
DIV Procedure - generates <DIV>
NL Procedure, BR Procedure - generate <BR>
NOBR Procedure - generates <NOBR>
WBR Procedure - generates <WBR>
PLAINTEXT Procedure - generates <PLAINTEXT>
ADDRESS Procedure - generates <ADDRESS>
MAILTO Procedure - generates <A>
with the MAILTO
attribute
AREA Procedure - generates <AREA>
BGSOUND Procedure - generates <BGSOUND>
BASEFONT Procedure - generates <BASEFONT>
BIG Procedure - generates <BIG>
BOLD Procedure - generates <B>
CENTER Procedure - generates <CENTER>
and </CENTER>
CENTEROPEN Procedure, CENTERCLOSE Procedure - generate <CENTER>
and </CENTER>
CITE Procedure - generates <CITE>
CODE Procedure - generates <CODE>
DFN Procedure - generates <DFN>
EM Procedure, EMPHASIS Procedure - generate <EM>
FONTOPEN Procedure, FONTCLOSE Procedure - generate <FONT>
and </FONT>
ITALIC Procedure - generates <I>
KBD Procedure, KEYBOARD Procedure - generate <KBD
> and </KBD>
S Procedure - generates <S>
SAMPLE Procedure - generates <SAMP>
SMALL Procedure - generates <SMALL>
STRIKE Procedure - generates <STRIKE>
STRONG Procedure - generates <STRONG>
SUB Procedure - generates <SUB>
SUP Procedure - generates <SUP>
TELETYPE Procedure - generates <TT>
UNDERLINE Procedure - generates <U>
VARIABLE Procedure - generates <VAR>
FRAME Procedure - generates <FRAME>
FRAMESETOPEN Procedure, FRAMESETCLOSE Procedure - generate <FRAMESET>
and </FRAMESET>
NOFRAMESOPEN Procedure, NOFRAMESCLOSE Procedure - generate <NOFRAMES>
and </NOFRAMES>
Table 208-1 HTP Package Subprograms
Subprogram | Description |
---|---|
Generates |
|
Generates |
|
Generates the |
|
Closes the applet invocation with the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
|
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Replaces characters that have special meaning in HTML with their escape sequences |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
|
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates opening heading tags |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
|
|
Creates a single entry field with a prompting text, such as "enter value," then sends that value to the URL of the page or program |
|
Generates the |
|
Generates the |
|
Generates the <KBD> and </KBD> tags, which direct the browser to render the text in monospace font |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Adds attributes to the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the specified parameter as a string terminated with the |
|
Generates a string and replaces the following characters with the corresponding escape sequence |
|
Generates the specified parameter as a string |
|
Generates a string and replaces the following characters with the corresponding escape sequence. |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the <TABLE> tag which marks the beginning of an HTML table |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
|
Generates the |
This procedure generates the <ADDRESS>
and </ADDRESS>
tags which specify the address, author and signature of a document.
HTP.ADDRESS ( cvalue IN VARCHAR2 cnowrap IN VARCHAR2 DEFAULT NULL cclear IN VARCHAR2 DEFAULT NULL cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-2 ADDRESS Procedure Parameters
Parameter | Description |
---|---|
|
The string that goes between the |
|
If the value for this parameter is not |
|
The value for the |
|
The other attributes to be included as-is in the tag |
This procedure and the ANCHOR2 Procedure procedures generate the <A>
and </A>
HTML tags which specify the source or destination of a hypertext link. The difference between these subprograms is that the
ANCHOR2 Procedure provides a target and therefore can be used for a frame.
HTP.ANCHOR ( curl IN VARCHAR2, ctext IN VARCHAR2, cname IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure and the ANCHOR Procedure generate the <A>
and </A>
HTML tags which specify the source or destination of a hypertext link. The difference between these subprograms is that this procedures provides a target and therefore can be used for a frame.
HTP.ANCHOR2 ( curl IN VARCHAR2, ctext IN VARCHAR2, cname IN VARCHAR2 DEFAULT NULL, ctarget in varchar2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-4 ANCHOR2 Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
The string that goes between the |
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag |
This procedure closes the applet invocation with the </APPLET>
tag. You must first invoke the a Java applet using APPLETOPEN Procedure.
This procedure generates the <APPLET>
tag which begins the invocation of a Java applet. You close the applet invocation with APPLETCLOSE Procedure which generates the </APPLET> tag.
HTP.APPLETOPEN ( ccode IN VARCHAR2, cheight IN NUMBER, cwidth IN NUMBER, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-5 APPLETOPEN Procedure Parameters
Parameter | Description |
---|---|
|
The the value for the |
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<APPLET CODE=ccode HEIGHT=cheight WIDTH=cwidth cattributes>
so that, for example,
HTP.appletopen('testclass.class', 100, 200, 'CODEBASE="/ows-applets"')
generates
<APPLET CODE="testclass.class" height=100 width=200 CODEBASE="/ows-applets">
Specify parameters to the Java applet using the PARAM Procedure.
Use the cattributes
parameter to specify the CODEBASE
attribute since the PL/SQL cartridge does not know where to find the class files. The CODEBASE
attribute specifies the virtual path containing the class files.
This procedure generates the <AREA>
tag, which defines a client-side image map. The <AREA>
tag defines areas within the image and destinations for the areas.
HTP.AREA ( ccoords IN VARCHAR2 cshape IN VARCHAR2 DEFAULT NULL, chref IN VARCHAR2 DEFAULT NULL, cnohref IN VARCHAR2 DEFAULT NULL, ctarget IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-6 AREA Procedure Parameters
Parameter | Description |
---|---|
|
The the value for the |
|
The value for the |
|
The value for the |
|
If the value for this parameter is not |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <BASEFONT>
tag which specifies the base font size for a Web page.
This procedure generates the <BGSOUND>
tag which includes audio for a Web page.
HTP.BGSOUND ( csrc IN VARCHAR2, cloop IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <BIG>
and </BIG>
tags which direct the browser to render the text in a bigger font.
This procedure generates the </BLOCKQUOTE>
tag which mark the end of a section of quoted text. You mark the beginning of a section of text by means of the BLOCKQUOTEOPEN Procedure.
This procedure generates the <BLOCKQUOTE>
tag, which marks the beginning of a section of quoted text. You mark the end of a section of text by means of the BLOCKQUOTECLOSE Procedure.
HTP.BLOCKQUOTEOPEN ( cnowrap IN VARCHAR2 DEFAULT NULL, cclear IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the </BODY>
tag which marks the end of a body section of an HTML document.You mark the beginning of a body section by means of the BODYOPEN Procedure.
This procedure generates the <BODY>
tag which marks the beginning of the body section of an HTML document. You mark the end of a body section by means of the BODYCLOSE Procedure.
This procedure generates the <B>
and </B>
tags which direct the browser to display the text in boldface.
This procedure generates the <BR>
tag which begins a new line of text. It performs the same operation as the NL Procedure.
This procedure generates the <CENTER>
and </CENTER>
tags which center a section of text within a Web page.
This procedure generates the </CENTER>
tag which marks the end of a section of text to center. You mark the beginning of a of a section of text to center by means of the CENTEROPEN Procedure.
This procedure generates the <CENTER>
tag which mark the beginning of a section of text to center.You mark the beginning of a of a section of text to center by means of the CENTERCLOSE Procedure.
This procedure generates the <CITE>
and </CITE>
tags which direct the browser to render the text as a citation.
This procedure generates the <CODE>
and </CODE>
tags which direct the browser to render the text in monospace font or however "code" is defined stylistically.
This procedure generates the <DFN>
and </DFN>
tags which direct the browser to mark the text in italics or however "definition" is described stylistically.
This procedure generates the </DIR>
tag which ends a directory list section. You start a directory list section with the DIRLISTOPEN Procedure.
A directory list presents a list of items that contains up to 20 characters. Items in this list are typically arranged in columns, 24 characters wide. Insert the <LI> tag directly or invoke the LISTITEM Procedure so that the <LI>
tag appears directly after the </DIR>
tag to define the items as a list.
This procedure generates the <DIR>
which starts a directory list section. You end a directory list section with the DIRLISTCLOSE Procedure.
A directory list presents a list of items that contains up to 20 characters. Items in this list are typically arranged in columns, 24 characters wide. Insert the <LI> tag directly or invoke the LISTITEM Procedure so that the <LI>
tag appears directly after the </DIR>
tag to define the items as a list.
This procedure generates the </DL>
tag which ends a definition list. You start a definition list by means of the DLISTOPEN Procedure.
A definition list looks like a glossary: it contains terms and definitions. Terms are inserted using the DLISTTERM Procedure and definitions are inserted using the DLISTDEF Procedure.
This procedure generates the <DD>
tag, which inserts definitions of terms. Use this tag for a definition list <DL>
. Terms are tagged <DT>
and definitions are tagged <DD>
.
HTP.DLISTDEF ( ctext IN VARCHAR2 DEFAULT NULL, cclear IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <DL>
tag which starts a definition list. You end a definition list by means of the DLISTCLOSE Procedure.
A definition list looks like a glossary: it contains terms and definitions. Terms are inserted using the DLISTTERM Procedure and definitions are inserted using the DLISTDEF Procedure.
This procedure generates the <DT>
tag which defines a term in a definition list <DL>
.
HTP.DLISTTERM ( ctext IN VARCHAR2 DEFAULT NULL, cclear IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <EM>
and </EM>
tags, which define text to be emphasized. It performs the same task as the EMPHASIS Procedure.
This procedure generates the <EM>
and </EM>
tags, which define text to be emphasized. It performs the same task as the EM Procedure.
This procedure replaces characters that have special meaning in HTML with their escape sequences. The following characters are converted:
&
to &
"
to ":
<
to <
>
to >
This procedure performs the same operation as PRINTS Procedures and PS Procedure.
This procedure generates the</FONT>
tag which marks the end of a section of text with the specified font characteristics. You mark the beginning of the section text by means of the FONTOPEN Procedure.
This procedure generates the <FONT>
which marks the beginning of section of text with the specified font characteristics. You mark the end of the section text by means of the FONTCLOSE Procedure.
HTP.FONTOPEN( ccolor IN VARCHAR2 DEFAULT NULL, cface IN VARCHAR2 DEFAULT NULL, csize IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <INPUT>
tag with TYPE="checkbox"
which inserts a checkbox element in a form. A checkbox element is a button that the user toggles on or off.
HTP.FORMCHECKBOX( cname IN VARCHAR2, cvalue IN VARCHAR2 DEFAULT 'ON', cchecked IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-28 FORMCHECKBOX Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
If the value for this parameter is not |
|
The other attributes to be included as-is in the tag. |
This procedure generates the </FORM>
tag which marks the end of a form section in an HTML document.You mark the beginning of the form section by means of the FORMOPEN Procedure.
This procedure generates the <FORM>
tag which marks the beginning of a form section in an HTML document. You mark the end of the form section by means of the FORMCLOSE Procedure.
HTP.FORMOPEN( curl IN VARCHAR2, cmethod IN VARCHAR2 DEFAULT 'POST', ctarget IN VARCHAR2 DEFAULT NULL, cenctype IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-29 FORMOPEN Procedure Parameters
Parameter | Description |
---|---|
|
The URL of the WRB or CGI script where the contents of the form is sent. This parameter is required. |
|
The value for the |
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <INPUT>
tag with TYPE="file"
which inserts a file form element. This is used for file uploading for a given page.
HTP.FORMFILE( cname IN VARCHAR2, caccept IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <INPUT>
tag with TYPE="hidden
", which inserts a hidden form element. This element is not seen by the user. It submits additional values to the script.
HTP.FORMHIDDEN( cname IN VARCHAR2, cvalue IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <INPUT>
tag with TYPE="image"
which creates an image field that the user clicks to submit the form immediately. The coordinates of the selected point are measured in pixels, and returned (along with other contents of the form) in two name/value pairs. The x coordinate is submitted under the name of the field with .x appended, and the y coordinate with .y appended. Any VALUE
attribute is ignored.
HTP.FORMIMAGE( cname IN VARCHAR2, csrc IN VARCHAR2, calign IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <INPUT>
tag with TYPE="password"
which creates a single-line text entry field. When the user enters text in the field, each character is represented by one asterisk. This is used for entering passwords.
HTP.FORMPASSWORD( cname IN VARCHAR2, csize IN VARCHAR2, cmaxlength IN VARCHAR2 DEFAULT NULL, cvalue IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-33 FORMPASSWORD Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <INPUT>
tag with TYPE="radio"
, which creates a radio button on the HTML form. Within a set of radio buttons, the user selects only one. Each radio button in the same set has the same name, but different values. The selected radio button generates a name/value pair.
HTP.FORMRADIO( cname IN VARCHAR2, cvalue IN VARCHAR2, cchecked IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-34 FORMRADIO Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
If the value for this parameter is not |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <INPUT>
tag
with TYPE="reset"
which creates a button that, when selected, resets the form fields to their initial values.
This procedure generates the </SELECT>
tag which marks the end of a Select form element. A Select form element is a listbox where the user selects one or more values. You mark the beginning of Select form element by means of the FORMSELECTOPEN Procedure.The values are inserted using FORMSELECTOPTION Procedure.
This procedure generates the <SELECT>
tags which creates a Select form element. A Select form element is a listbox where the user selects one or more values. You mark the end of Select form element by means of the FORMSELECTCLOSE Procedure.The values are inserted using FORMSELECTOPTION Procedure.
FORMSELECTOPEN( cname IN VARCHAR2, cprompt IN VARCHAR2 DEFAULT NULL, nsize IN INTEGER DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates
cprompt <SELECT NAME="cname" SIZE="nsize" cattributes> </SELECT>
so that
HTP.FORMSELECTOPEN('greatest_player'; 'Pick the greatest player:'); HTP.FORMSELECTOPTION('Messier'); HTP.FORMSELECTOPTION('Howe'); HTP.FORMSELECTOPTION('Gretzky');. HTP.FORMSELECTCLOSE;
generates
Pick the greatest player: <SELECT NAME="greatest_player"> <OPTION>Messier <OPTION>Howe <OPTION>Gretzky </SELECT>
This procedure generates the <OPTION>
tag which represents one choice in a Select element.
HTP.FORMSELECTOPTION( cvalue IN VARCHAR2, cselected IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates
<OPTION SELECTED cattributes>cvalue
as shown under Examples of the FORMSELECTOPEN Procedure.
This procedure generates the <INPUT>
tag with TYPE="submit"
which creates a button that, when clicked, submits the form. If the button has a NAME
attribute, the button contributes a name/value pair to the submitted data.
HTP.FORMSUBMIT( cname IN VARCHAR2 DEFAULT NULL, cvalue IN VARCHAR2 DEFAULT 'Submit', cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <INPUT>
tag with TYPE="text"
, which creates a field for a single line of text.
HTP.FORMTEXT( cname IN VARCHAR2, csize IN VARCHAR2 DEFAULT NULL, cmaxlength IN VARCHAR2 DEFAULT NULL, cvalue IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-39 FORMTEXT Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <TEXTAREA>
tag, which creates a text field that has no predefined text in the text area. This field enables entering several lines of text. The same operation is performed by the FORMTEXTAREA2 Procedure which in addition has the cwrap
parameter that lets you specify a wrap style.
HTP.FORMTEXTAREA( cname IN VARCHAR2, nrows IN INTEGER, ncolumns IN INTEGER, calign , IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-40 FORMTEXTAREA Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <TEXTAREA>
tag, which creates a text field that has no predefined text in the text area. This field enables entering several lines of text.The same operation is performed by the FORMTEXTAREA Procedure except that in that case you cannot specify a wrap style.
HTP.FORMTEXTAREA2( cname IN VARCHAR2, nrows IN INTEGER, ncolumns IN INTEGER, calign IN VARCHAR2 DEFAULT NULL, cwrap IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-41 FORMTEXTAREA2 Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The value for the |
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the </TEXTAREA>
tag which ends a text area form element. You open a text area element by means of eitherFORMTEXTAREAOPEN Procedure or FORMTEXTAREAOPEN2 Procedure.
This procedure generates the <TEXTAREA>
which marks the beginning of a text area form element. The same operation is performed by the FORMTEXTAREAOPEN2 Procedure which in addition has the cwrap
parameter that lets you specify a wrap style. You mark the end of a text area form element by means of the FORMTEXTAREACLOSE Procedure.
HTP.FORMTEXTAREAOPEN( cname IN VARCHAR2, nrows IN INTEGER, ncolumns IN INTEGER, calign IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-42 FORMTEXTAREAOPEN Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <TEXTAREA>
which marks the beginning of a text area form element. The same operation is performed by the FORMTEXTAREAOPEN Procedure except that in that case you cannot specify a wrap style. You mark the end of a text area form element by means of the FORMTEXTAREACLOSE Procedure.
HTP.FORMTEXTAREAOPEN2( cname IN VARCHAR2, nrows IN INTEGER, ncolumns IN INTEGER, calign IN VARCHAR2 DEFAULT NULL, cwrap IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-43 FORMTEXTAREAOPEN2 Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The value for the |
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <FRAME>
tag which begins the characteristics of a frame created by a <FRAMESET>
tag.
HTP.FRAME( csrc IN VARCHAR2, cname IN VARCHAR2 DEFAULT NULL, cmarginwidth IN VARCHAR2 DEFAULT NULL, cmarginheight IN VARCHAR2 DEFAULT NULL, cscrolling IN VARCHAR2 DEFAULT NULL, cnoresize IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-44 FRAME Procedure Parameters
Parameter | Description |
---|---|
|
The URL to display in the frame. |
|
The value for the |
|
The value for the |
|
The value for the |
|
If the value for this parameter is not |
|
The other attributes to be included as-is in the tag. |
This procedure generates the </FRAMESET>
tag which ends a frameset section. You mark the beginning of a frameset section by means of the FRAMESETOPEN Procedure.
This procedure generates the <FRAMESET>
tag which define a frameset section. You mark the end of a frameset section by means of the FRAMESETCLOSE Procedure.
HTP.FRAMESETOPEN( crows IN VARCHAR2 DEFAULT NULL, ccols IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the </HEAD>
tag which marks the end of an HTML document head section. You mark the beginning of an HTML document head section by means of the HEADOPEN Procedure.
This procedure generates opening heading tags (<H1>
to <H6>)
and their corresponding closing tags (</H1>
to </H6>)
.
HTP.HEADER( nsize IN INTEGER, cheader IN VARCHAR2, calign IN VARCHAR2 DEFAULT NULL, cnowrap IN VARCHAR2 DEFAULT NULL, cclear IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-46 HEADER Procedure Parameters
Parameter | Description |
---|---|
|
The the heading level. This is an integer between 1 and 6. |
|
The text to display in the heading. |
|
The value for the |
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <HEAD>
tag which marks the beginning of the HTML document head section. You mark the end of an HTML document head section by means of the HEADCLOSE Procedure.
This procedure generates the <HR>
tag, which generates a line in the HTML document.This subprogram performs the same operation as the LINE Procedure.
HTP.HR( cclear IN VARCHAR2 DEFAULT NULL, csrc IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the </HTML>
tag which marks the end of an HTML document. You use the HTMLOPEN Procedure to mark the beginning of an HTML document.
This procedure generates the <HTML> tag which marks the beginning of an HTML document. You use the HTMLCLOSE Procedure to mark the end of the an HTML document.
This procedure generates the <IMG>
tag which directs the browser to load an image onto the HTML page. The IMG2 Procedure performs the same operation but additionally uses the cusemap
parameter.
HTP.IMG( curl IN VARCHAR2 DEFAULT NULL, calign IN VARCHAR2 DEFAULT NULL, calt IN VARCHAR2 DEFAULT NULL, cismap IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-48 IMG Procedure Parameters
Parameter | Description |
---|---|
|
The value for the SRC attribute. |
|
The value for the |
|
The value for the |
|
If the value for this parameter is not |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <IMG> tag, which directs the browser to load an image onto the HTML page. The IMG Procedure performs the same operation but does not use the cusemap
parameter.
HTP.IMG2( curl IN VARCHAR2 DEFAULT NULL, calign IN VARCHAR2 DEFAULT NULL, calt IN VARCHAR2 DEFAULT NULL, cismap IN VARCHAR2 DEFAULT NULL, cusemap IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-49 IMG2 Procedure Parameters
Parameter | Description |
---|---|
|
The value for the SRC attribute. |
|
The value for the |
|
The value for the |
|
If the value for this parameter is not |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure creates a single entry field with a prompting text, such as "enter value," then sends that value to the URL of the page or program.
This procedure generates the <I>
and </I>
tags which direct the browser to render the text in italics.
This procedure generates the <KBD>
and </KBD>
tags which direct the browser to render the text in monospace font. This subprogram performs the same operation as the KEYBOARD Procedure.
This procedure generates the <KBD> and </KBD> tags, which direct the browser to render the text in monospace font. This subprogram performs the same operation as the KBD Procedure.
This procedure generates the <HR>
tag, which generates a line in the HTML document. This subprogram performs the same operation as the HR Procedure.
HTP.LINE( cclear IN VARCHAR2 DEFAULT NULL, csrc IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <LINK>
tag with the REL
attribute which delineates the relationship described by the hypertext link from the anchor to the target. This is only used when the HREF
attribute is present. This is the opposite of LINKREV Procedure. This tag indicates a relationship between documents but does not create a link. To create a link, use the ANCHOR Procedure.
This procedure generates the <LINK>
tag with the REV
attribute which delineates the relationship described by the hypertext link from the target to the anchor. This is the opposite of the LINKREL Procedure. This tag indicates a relationship between documents, but does not create a link. To create a link, use the ANCHOR Procedure.
This procedure generates the <LH>
and </LH>
tags which print an HTML tag at the beginning of the list.
This procedure generates the </LISTING>
tags which marks the end of a section of fixed-width text in the body of an HTML page. To mark the beginning of a section of fixed-width text in the body of an HTML page, use the LISTINGOPEN Procedure.
This procedure generates the <LISTING>
tag which marks the beginning of a section of fixed-width text in the body of an HTML page. To mark the end of a section of fixed-width text in the body of an HTML page, use the LISTINGCLOSE Procedure.
This procedure generates the <LI>
tag, which indicates a list item.
HTP.LISTITEM( ctext IN VARCHAR2 DEFAULT NULL, cclear IN VARCHAR2 DEFAULT NULL, cdingbat IN VARCHAR2 DEFAULT NULL, csrc IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <A>
tag with the HREF
set to 'mailto' prepended to the mail address argument.
HTP.MAILTO( caddress IN VARCHAR2, ctext IN VARCHAR2, cname IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the </MAP>
tag which marks the end of a set of regions in a client-side image map. To mark the beginning of a set of regions in a client-side image map, use the MAPOPEN Procedure.
This procedure generates the <MAP>
tag which mark the beginning of a set of regions in a client-side image map. To mark the end of a set of regions in a client-side image map, use the MAPCLOSE Procedure.
This procedure generates the </MENU>
tag which ends a list that presents one line for each item. To begin a list of this kind, use the MENULISTOPEN Procedure. The items in the list appear more compact than an unordered list. The LISTITEM Procedure defines the list items in a menu list.
This procedure generates the <MENU>
tag which begins a list that presents one line for each item. To end a list of this kind, use the MENULISTCLOSE Procedure.The items in the list appear more compact than an unordered list. The LISTITEM Procedure defines the list items in a menu list.
This procedure generates the <META>
tag, which embeds meta-information about the document and also specifies values for HTTP headers. For example, you can specify the expiration date, keywords, and author name.
This procedure generates the <BR>
tag which begins a new line of text. It performs the same operation as the BR Procedure.
This procedure generates the <NOBR>
and </NOBR>
tags which turn off line-breaking in a section of text.
This procedure generates the </NOFRAMES>
tag which marks the end of a no-frames section. To mark the beginning of a no-frames section, use the FRAMESETOPEN Procedure. See also FRAME Procedure, FRAMESETOPEN Procedure and FRAMESETCLOSE Procedure.
This procedure generates the <NOFRAMES>
tag which mark the beginning of a no-frames section. To mark the end of a no-frames section, use the FRAMESETCLOSE Procedure. See also FRAME Procedure, FRAMESETOPEN Procedure and FRAMESETCLOSE Procedure.
This procedure generates the </OL>
tag which defines the end of an ordered list. An ordered list presents a list of numbered items. To mark the beginning of a list of this kind, use the OLISTOPEN Procedure. Numbered items are added using LISTITEM Procedure.
This procedure generates the <OL>
tag which marks the beginning of an ordered list. An ordered list presents a list of numbered items. To mark the end of a list of this kind, use the OLISTCLOSE Procedure. Numbered items are added using LISTITEM Procedure.
HTP.OLISTOPEN( cclear IN VARCHAR2 DEFAULT NULL, cwrap IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <P>
tag which indicates that the text that comes after the tag is to be formatted as a paragraph. You can add attributes to the tag by means of the PARAGRAPH Procedure.
You can use this procedure to add attributes to the <P>
tag created by the PARA Procedure.
HTP.PARAGRAPH( calign IN VARCHAR2 DEFAULT NULL, cnowrap IN VARCHAR2 DEFAULT NULL, cclear IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-65 PARAGRAPH Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
If the value for this parameter is not |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <PARAM>
tag which specifies parameter values for Java applets. The values can reference HTML variables. To invoke a Java applet from a Web page, use APPLETOPEN Procedure to begin the invocation. Use one PARAM Procedure for each desired name-value pair, and use APPLETCLOSE Procedure to end the applet invocation.
This procedure generates the <PLAINTEXT>
and </PLAINTEXT>
tags which direct the browser to render the text they surround in fixed-width type.
This procedure generates the </PRE>
tag which marks the end of a section of preformatted text in the body of the HTML page. To mark the beginning of a section of preformatted text in the body of the HTML page, use the PREOPEN Procedure.
This procedure generates the <PRE>
tag which marks the beginning of a section of preformatted text in the body of the HTML page. To mark the end of a section of preformatted text in the body of the HTML page, use the PRECLOSE Procedure.
HTP.PREOPEN( cclear IN VARCHAR2 DEFAULT NULL, cwidth IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
These procedures generate the specified parameter as a string terminated with the \n
newline character. The PRN Procedures performs the same operation but does not terminate with a newline character.
This procedure generates a string and replaces the following characters with the corresponding escape sequence.
<
to <
>
to >
"
to "
&
to &
If not replaced, the special characters are interpreted as HTML control characters and produce garbled output. This procedure an the PS Procedure perform the same operation as the PRN Procedures but with character substitution.
This procedure does not have an HTF function equivalent (see Operational Notes for the HTF implementation).
These procedures generate the specified parameter as a string. Unlike the PRINT Procedures the string is not terminated with the \n
newline character.
This procedure generates a string and replaces the following characters with the corresponding escape sequence.
<
to <
>
to >
"
to "
&
to &
If not replaced, the special characters are interpreted as HTML control characters and produce garbled output. This procedure and the PRINTS Procedure perform the same operation as the PRN Procedures but with character substitution.
This procedure does not have an HTF function equivalent (see Operational Notes for the HTF implementation).
This procedure generates the <S>
and </S>
tags which direct the browser to render the text they surround in strikethrough type. This performs the same operation as STRIKE Procedure.
This procedure generates the <SAMP>
and </SAMP>
tags which direct the browser to render the text they surround in monospace font or however "sample" is defined stylistically.
This procedure generates the <SCRIPT>
and </SCRIPT>
tags which contain a script written in languages such as JavaScript and VBscript.
Table 208-75 SCRIPT Procedure Parameters
Parameter | Description |
---|---|
|
The text of the script. This is the text that makes up the script itself, not the name of a file containing the script. |
|
The language in which the script is written. If this parameter is omitted, the user's browser determines the scripting language. |
This procedure generates the <SMALL>
and </SMALL>
tags, which direct the browser to render the text they surround using a small font.
This procedure generates the <STRIKE>
and </STRIKE>
tags which direct the browser to render the text they surround in strikethrough type. This performs the same operation as S Procedure.
This procedure generates the <STRONG>
and </STRONG>
tags which direct the browser to render the text they surround in bold or however "strong" is defined.
This procedure generates the <STYLE>
and </STYLE>
tags which include a style sheet in a Web page. You can get more information about style sheets at http://www.w3.org
. This feature is not compatible with browsers that support only HTML versions 2.0 or earlier. Such browsers will ignore this tag.
HTP.STYLE( cstyle IN VARCHAR2);
This procedure generates the <SUB>
and </SUB>
tags which direct the browser to render the text they surround as subscript.
HTP.SUB( ctext IN VARCHAR2, calign in VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <SUP>
and </SUP>
tags which direct the browser to render the text they surround as superscript.
HTP.SUP( ctext IN VARCHAR2, calign in VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <CAPTION>
and </CAPTION>
tags which place a caption in an HTML table.
HTP.TABLECAPTION( ccaption IN VARCHAR2, calign in VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the </TABLE>
tag which marks the end of an HTML table. To define the beginning of an HTML table, use the TABLEOPEN Procedure.
This procedure generates the <TD>
and </TD>
tags which insert data into a cell of an HTML table.
HTP.TABLEDATA( cvalue IN VARCHAR2 DEFAULT NULL, calign IN VARCHAR2 DEFAULT NULL, cdp IN VARCHAR2 DEFAULT NULL, cnowrap IN VARCHAR2 DEFAULT NULL, crowspan IN VARCHAR2 DEFAULT NULL, ccolspan IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-83 TABLEDATA Procedure Parameters
Parameter | Description |
---|---|
|
The data for the cell in the table. |
|
The value for the |
|
The value for the |
|
If the value of this parameter is not |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <TH>
and </TH>
tags which insert a header cell in an HTML table. The <TH>
tag is similar to the <TD>
tag except that the text in this case the rows are usually rendered in bold type.
HTP.TABLEHEADER( cvalue IN VARCHAR2 DEFAULT NULL, calign IN VARCHAR2 DEFAULT NULL, cdp IN VARCHAR2 DEFAULT NULL, cnowrap IN VARCHAR2 DEFAULT NULL, crowspan IN VARCHAR2 DEFAULT NULL, ccolspan IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-84 TABLEHEADER Procedure Parameters
Parameter | Description |
---|---|
|
The data for the cell in the table. |
|
The value for the |
|
The value for the |
|
If the value of this parameter is not |
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <TABLE> tag which marks the beginning of an HTML table. To define the end of an HTML table, use the TABLECLOSE Procedure.
HTP.TABLEOPEN( cborder IN VARCHAR2 DEFAULT NULL calign IN VARCHAR2 DEFAULT NULL, cnowrap IN VARCHAR2 DEFAULT NULL, cclear IN VARCHAR2 DEFAULT NULL cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-85 TABLEOPEN Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
If the value of this parameter is not |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates the </TR>
tag which marks the end of a new row in an HTML table. To mark the beginning of a new row, use the TABLEROWOPEN Procedure.
This procedure generates the <TR>
tag which marks the beginning of a new row in an HTML table. To mark the end of a new row, use the TABLEROWCLOSE Procedure.
HTP.TABLEROWOPEN( calign IN VARCHAR2 DEFAULT NULL, cvalign IN VARCHAR2 DEFAULT NULL, cdp IN VARCHAR2 DEFAULT NULL, cnowrap IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Table 208-86 TABLEROWOPEN Procedure Parameters
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The value for the |
|
If the value of this parameter is not |
|
The other attributes to be included as-is in the tag. |
This procedure generates the <TT>
and </TT>
tags which direct the browser to render the text they surround in a fixed width typewriter font, for example, the courier font.
This procedure generates the <TITLE>
and </TITLE>
tags which specify the text to display in the titlebar of the browser window.
This procedure generates the </UL>
tag which marks the end of an unordered list. An unordered list presents items with bullets. To mark the beginning of an unordered list, use the ULISTOPEN Procedure. Add list items with LISTITEM Procedure.
This procedure generates the <UL>
tag which marks the beginning of an unordered list. An unordered list presents items with bullets. To mark the end of an unordered list, use the ULISTCLOSE Procedure. Add list items with LISTITEM Procedure.
HTP.ULISTOPEN( cclear IN VARCHAR2 DEFAULT NULL, cwrap IN VARCHAR2 DEFAULT NULL, cdingbat IN VARCHAR2 DEFAULT NULL, csrc IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates the <U>
and </U>
tags, which direct the browser to render the text they surround with an underline.