PL/SQL Packages and Types Reference 10g Release 1 (10.1) Part Number B10802-01 |
|
|
View PDF |
The HTP
(hypertext procedures) and HTF
(hypertext functions) packages generate HTML tags. For example, the HTP
.ANCHOR
procedure generates the HTML anchor tag, <A>
.
This chapter contains the following topics:
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 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 data type 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
data type 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 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>
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);
This procedure generates
<ADDRESS CLEAR="cclear" NOWRAP cattributes>cvalue</ADDRESS>
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 generates
<A HREF="curl" NAME="cname" cattributes>ctext</A>
This tag accepts several attributes, but either HREF
or NAME
is required. HREF
specifies to where to link. NAME
allows this tag to be a target of a hypertext link.
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);
This procedure generates
<A HREF="curl" NAME="cname" TARGET = "ctarget" cattributes>ctext</A>
This procedure closes the applet invocation with the </APPLET>
tag. You must first invoke the a Java applet using APPLETOPEN Procedure
HTP.APPLETCLOSE;
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);
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">
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);
This procedure generates
<AREA COORDS="ccoords" SHAPE="cshape" HREF="chref" NOHREF TARGET="ctarget" cattributes>
This procedure generates the <BASE>
tag which records the URL of the document.
HTP.BASE ( ctarget IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates
<BASE HREF="<current URL>" TARGET="ctarget" cattributes>
This procedure generates the <BASEFONT>
tag which specifies the base font size for a Web page.
HTP.BASEFONT ( nsize IN INTEGER);
Parameter | Description |
---|---|
|
The value for the |
This procedure generates
<BASEFONT SIZE="nsize">
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);
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<BGSOUND SRC="csrc" LOOP="cloop" cattributes>
This procedure generates the <BIG>
and </BIG>
tags which direct the browser to render the text in a bigger font.
HTP.BIG ( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The the text that goes between the tags. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<BIG cattributes>ctext</BIG>
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.
HTP.BLOCKQUOTECLOSE;
This procedure generates
</BLOCKQUOTE>
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
<BLOCKQUOTE CLEAR="cclear" NOWRAP cattributes>
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.
HTP.BODYCLOSE;
This procedure generates
</BODY>
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.
HTP.BODYOPEN ( cbackground IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
This procedure generates
<BODY background="cbackground" cattributes>
so that
HTP.BODYOPEN('/img/background.gif');
generates:
<BODY background="/img/background.gif">
This procedure generates the <B>
and </B>
tags which direct the browser to display the text in boldface.
HTP.BOLD ( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text that goes between the tags. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<B cattributes>ctext</B>
This procedure generates the <BR>
tag which begins a new line of text. It performs the same operation as the NL Procedure.
HTP.BR( cclear IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<BR CLEAR="cclear" cattributes>
This procedure generates the <CENTER>
and </CENTER>
tags which center a section of text within a Web page.
HTP.CENTER ( ctext IN VARCHAR2);
Parameter | Description |
---|---|
|
The text that goes between the tags. |
This procedure generates
<CENTER>ctext</CENTER>
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.
HTP.CENTERCLOSE;
This procedure generates
</CENTER>
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.
HTP.CENTEROPEN;
This procedure generates
<CENTER>
This procedure generates the <CITE>
and </CITE>
tags which direct the browser to render the text as a citation.
HTP.CITE ( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to render as citation. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<CITE cattributes>ctext</CITE>
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.
HTP.CODE ( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to render as code. |
|
The other attributes to be included as-is in the tag |
This procedure generates
<CODE cattributes>ctext</CODE>
This procedure generates the comment tags.
HTP.COMMENT ( ctext IN VARCHAR2);
Parameter | Description |
---|---|
|
The comment. |
This procedure generates
<!-- ctext -->
This procedure generates the <DFN>
and </DFN>
tags which direct the browser to mark the text in italics or however "definition" is described stylistically.
HTP.DFN ( ctext IN VARCHAR2);
Parameter | Description |
---|---|
|
The text to render in italics. |
This procedure generates
<DFN>ctext</DFN>
This procedure generates the </DIR>
tag which ends a directory list section. You start a directory list section with the DIRLISTOPEN Procedure.
HTP.DIRLISTCLOSE;
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
</DIR>
This procedure generates the <DIR>
which starts a directory list section. You end a directory list section with the DIRLISTCLOSE Procedure.
HTP.DIRLISTOPEN;
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
<DIR>
This procedure generates the <DIV>
tag which creates document divisions.
HTP.DIV ( calign IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<DIV ALIGN="calign" cattributes>This procedure generates the </DL>
tag which ends a definition list. You start a definition list by means of the DLISTOPEN Procedure.
HTP.DLISTCLOSE;
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
</DL>
This procedure generates the <DL>
tag which starts a definition list. You end a definition list by means of the DLISTCLOSE Procedure.
HTP.DLISTOPEN ( cclear IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The value for the |
|
The other attributes to be included as-is in the tag. |
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
<DL CLEAR="cclear" cattributes>
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);
Parameter | Description |
---|---|
|
The definition of the term. |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<DD CLEAR="cclear" cattributes>ctext
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);
Parameter | Description |
---|---|
|
The term. |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<DT CLEAR="cclear" cattributes>ctext
This procedure generates the <EM>
and </EM>
tags, which define text to be emphasized. It performs the same task as the EMPHASIS Procedure.
HTP.EM( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to emphasize. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<EM cattributes>ctext</EM>
This procedure generates the <EM>
and </EM>
tags, which define text to be emphasized. It performs the same task as the EM Procedure.
HTP.EMPHASIS( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to emphasize. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<EM cattributes>ctext</EM>
This procedure replaces characters that have special meaning in HTML with their escape sequences. The following characters are converted:
This procedure performs the same operation as PRINTS Procedures and PS Procedure.
HTP.ESCAPE_SC( ctext IN VARCHAR2);
Parameter | Description |
---|---|
|
The text string to convert. |
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.
HTP.FONTCLOSE;
This procedure generates
</FONT>
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
<FONT COLOR="ccolor" FACE="cface" SIZE="csize" cattributes>
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);
This procedure generates
<INPUT TYPE="checkbox" NAME="cname" VALUE="cvalue" CHECKED cattributes>
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.
HTP.FORMCLOSE;
This procedure generates
</FORM>
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);
This procedure generates
<FORM ACTION="curl" METHOD="cmethod" TARGET="ctarget" ENCTYPE="cenctype" cattributes>
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);
Parameter | Description |
---|---|
|
The value for the |
|
A comma-delimited list of MIME types for upload. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<INPUT TYPE="file" NAME="cname" ACCEPT="caccept" cattributes>
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);
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<INPUT TYPE="hidden" NAME="cname" VALUE="cvalue" cattributes>
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
<INPUT TYPE="image" NAME="cname" SRC="csrc" ALIGN="calign" cattributes>
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);
This procedure generates
<INPUT TYPE="password" NAME="cname" SIZE="csize" MAXLENGTH="cmaxlength" VALUE="cvalue" cattributes>
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);
This procedure generates
<INPUT TYPE="radio" NAME="cname" VALUE="cvalue" CHECKED cattributes>
This procedure generates the <INPUT>
tag
with TYPE="reset"
which creates a button that, when selected, resets the form fields to their initial values.
HTP.FORMRESET( cvalue IN VARCHAR2 DEFAULT 'Reset', cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The value for the VALUE attribute. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<INPUT TYPE="reset" VALUE="cvalue" cattributes>
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.
HTP.FORMSELECTCLOSE;
This procedure generates
</SELECT>
as shown under Examples of the FORMSELECTOPEN 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);
Parameter | Description |
---|---|
|
The value for the NAME attribute. |
|
The value for the VALUE attribute. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<INPUT TYPE="submit" NAME="cname" VALUE="cvalue" cattributes>
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);
This procedure generates
<INPUT TYPE="text" NAME="cname" SIZE="csize" MAXLENGTH="cmaxlength" VALUE="cvalue" cattributes>
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);
This procedure generates
<TEXTAREA NAME="cname" ROWS="nrows" COLS="ncolumns" ALIGN="calign" cattributes></TEXTAREA>
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);
This procedure generates
<TEXTAREA NAME="cname" ROWS="nrows" COLS="ncolumns" ALIGN="calign" WRAP="cwrap" cattributes></TEXTAREA>
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.
HTP.FORMTEXTAREACLOSE;
This procedure generates
</TEXTAREA>
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);
This procedure generates
<TEXTAREA NAME="cname" ROWS="nrows" COLS="ncolumns" ALIGN="calign" cattributes>
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);
This procedure generates
<TEXTAREA NAME="cname" ROWS="nrows" COLS="ncolumns" ALIGN="calign" WRAP = "cwrap" cattributes>
This procedure generates the <FRAME>
tag which defines 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);
This procedure generates
<FRAME SRC="csrc" NAME="cname" MARGINWIDTH="cmarginwidth" MARGINHEIGHT="cmarginheight" SCROLLING="cscrolling" NORESIZE cattributes>
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.
HTP.FRAMESETCLOSE;
This procedure generates
</FRAMESET>
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);
Parameter | Description |
---|---|
|
The value for the ROWS attribute. |
|
The value for the COLS attribute. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<FRAMESET ROWS="crows" COLS="ccols" cattributes>
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.
HTP.HEADCLOSE;
This procedure generates
</HEAD>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.
HTP.HEADOPEN;
This procedure generates
<HEAD>
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);
HTP.header (1,'Overview');
produces:
<H1>Overview</H1>
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
<HR CLEAR="cclear" SRC="csrc" cattributes>
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.
HTP.HTMLCLOSE;
This procedure generates
</HTML>
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.
HTP.HTMLOPEN;
This procedure generates
<HTML>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);
This procedure generates
<IMG SRC="curl" ALIGN="calign" ALT="calt" ISMAP cattributes>
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);
This procedure generates
<IMG SRC="curl" ALIGN="calign" ALT="calt" ISMAP USEMAP="cusemap" cattributes>
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.
HTP.ISINDEX( cprompt IN VARCHAR2 DEFAULT NULL, curl IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The value for the |
|
The value for the HREF attribute. |
This procedure generates
<ISINDEX PROMPT="cprompt" HREF="curl">
This procedure generates the <I>
and </I>
tags which direct the browser to render the text in italics.
HTP.ITALIC( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to be rendered in italics. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<I cattributes>ctext</I>
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.
HTP.KBD( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to be rendered in monospace. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<KBD cattributes>ctext</KBD>
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.
HTP.KEYBOARD( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to be rendered in monospace. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<KBD cattributes>ctext</KBD>
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
<HR CLEAR="cclear" SRC="csrc" cattributes>
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.
HTP.LINKREL( crel IN VARCHAR2, curl IN VARCHAR2, ctitle IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The value for the |
This procedure generates
<LINK REL="crel" HREF="curl" TITLE="ctitle">
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.
HTP.LINKREV( crev IN VARCHAR2, curl IN VARCHAR2, ctitle IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The value for the |
This procedure generates
<LINK REV="crev" HREF="curl" TITLE="ctitle">
This procedure generates the <LH>
and </LH>
tags which print an HTML tag at the beginning of the list.
HTP.LISTHEADER( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to place between |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<LH cattributes>ctext</LH>
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.
HTP.LISTINGCLOSE;
This procedure generates
</LISTING>
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.
HTP.LISTINGOPEN;
This procedure generates
<LISTING>
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
<LI CLEAR="cclear" DINGBAT="cdingbat" SRC="csrc" cattributes>ctext
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
<A HREF="mailto:caddress" NAME="cname" cattributes>ctext</A>
so that
HTP.mailto('pres@white_house.gov','Send Email to the President');
generates:
<A HREF="mailto:pres@white_house.gov">Send Email to the President</A>
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.
HTP.MAPCLOSE;
This procedure generates
</MAP>
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.
HTP.MAPOPEN( cname IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The value for the NAME attribute. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<MAP NAME="cname" cattributes>
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.
HTP.MENULISTCLOSE;
This procedure generates
</MENU>
This procedure generates the <MENU>
tag which create 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.
HTP.MENULISTOPEN;
This procedure generates
<MENU>
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.
HTP.META( chttp_equiv IN VARCHAR2, cname IN VARCHAR2, ccontent IN VARCHAR2);
Parameter | Description |
---|---|
|
The value for the CHTTP_EQUIV attribute. |
|
The value for the NAME attribute. |
|
The value for the CONTENT attribute. |
This procedure generates
<META HTTP-EQUIV="chttp_equiv" NAME ="cname" CONTENT="ccontent">
so that
HTP.meta ('Refresh', NULL, 120);
generates
<META HTTP-EQUIV="Refresh" CONTENT=120>
On some Web browsers, this causes the current URL to be reloaded automatically every 120 seconds.
This procedure generates the <BR>
tag which begins a new line of text. It performs the same operation as the BR Procedure.
HTP.NL( cclear IN VARCHAR2 DEFAULT NULL, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<BR CLEAR="cclear" cattributes>
This procedure generates the <NOBR>
and </NOBR>
tags which turn off line-breaking in a section of text.
HTP.NOBR( ctext IN VARCHAR2);
Parameter | Description |
---|---|
|
The text that is to be rendered on one line. |
This procedure generates
<NOBR>ctext</NOBR>
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.
HTP.NOFRAMESCLOSE;
This procedure generates
</NOFRAMES>
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.
HTP.NOFRAMESOPEN;
This procedure generates
<NOFRAMES>
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.
HTP.OLISTCLOSE;
This procedure generates
</OL>
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);
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<OL CLEAR="cclear" WRAP="cwrap" cattributes>
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.
HTP.PARA;
This procedure generates
<P>
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);
This procedure generates
<P ALIGN="calign" NOWRAP CLEAR="cclear" cattributes>
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.
HTP.PARAM( cname IN VARCHAR2 cvalue IN VARCHAR2);
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
This procedure generates
<PARAM NAME=cname VALUE="cvalue">
This procedure generates the <PLAINTEXT>
and </PLAINTEXT>
tags which direct the browser to render the text they surround in fixed-width type.
HTP.PLAINTEXT( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to be rendered in fixed-width font. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<PLAINTEXT cattributes>ctext</PLAINTEXT>
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.
HTP.PRECLOSE;
This procedure generates
</PRE>
This procedure generates the 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);
Parameter | Description |
---|---|
|
The value for the |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<PRE CLEAR="cclear" WIDTH="cwidth" cattributes>
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.
HTP.PRINT ( cbuf IN VARCHAR2); HTP.PRINT ( dbuf IN DATE); HTP.PRINT ( nbuf IN NUMBER);
Parameter | Description |
---|---|
|
The string to generate terminated by a newline. |
|
The string to generate terminated by a newline. |
|
The string to generate terminated by a newline. |
\n
character is not the same as <BR>
. The \n
character formats the HTML source but it does not affect how the browser renders the HTML source. Use <BR>
to control how the browser renders the HTML source.This procedure generates a string and replaces the following characters with the corresponding escape sequence.
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.
HTP.PRINTS ( ctext IN VARCHAR2);
Parameter | Description |
---|---|
|
The string where to perform 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.
HTP.PRN ( cbuf IN VARCHAR2); HTP.PRN ( dbuf IN DATE); HTP.PRN ( nbuf IN NUMBER);
Parameter | Description |
---|---|
|
The string to generate (not terminated by a newline). |
|
The string to generate (not terminated by a newline). |
|
The string to generate (not terminated by a newline). |
These procedures do not have function equivalents.
This procedure generates a string and replaces the following characters with the corresponding escape sequence.
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.
HTP.PS ( ctext IN VARCHAR2);
Parameter | Description |
---|---|
|
The string where to perform 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.
HTP.S ( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to be rendered in strikethrough type. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<S cattributes>ctext</S>
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.
HTP.SAMPLE ( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to be rendered in monospace font. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<SAMP cattributes>ctext</SAMP>
This procedure generates the <SCRIPT>
and </SCRIPT>
tags which contain a script written in languages such as JavaScript and VBscript.
HTP.SCRIPT ( cscript IN VARCHAR2, clanguage IN VARCHAR2 DEFAULT NULL);
This procedure generates
<SCRIPT LANGUAGE=clanguage>cscript</SCRIPT>
so that
HTP.script ('Erupting_Volcano', 'Javascript');
generates
<SCRIPT LANGUAGE=Javascript>"script text here"</SCRIPT>
This causes the browser to run the script enclosed in the tags.
This procedure generates the <SMALL>
and </SMALL>
tags, which direct the browser to render the text they surround using a small font.
HTP.SMALL ( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to be rendered in small font. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<SMALL cattributes>ctext</SMALL>
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.
HTP.STRIKE ( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to be rendered in strikethrough type. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<STRIKE cattributes>ctext</STRIKE>
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.
HTP.STRONG( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to be emphasized. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<STRONG cattributes>ctext</STRONG>
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);
Parameter | Description |
---|---|
|
The the style information to include. |
This procedure generates
<STYLE>cstyle</STYLE>
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);
Parameter | Description |
---|---|
|
The text to render in subscript. |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<SUB ALIGN="calign" cattributes>ctext</SUB>
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);
Parameter | Description |
---|---|
|
The text to render in superscript. |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<SUP ALIGN="calign" cattributes>ctext</SUP>
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);
Parameter | Description |
---|---|
|
The text for the caption. |
|
The value for the |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<CAPTION ALIGN="calign" cattributes>ccaption</CAPTION>
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);
This procedure generates
<TD ALIGN="calign" DP="cdp" ROWSPAN="crowspan" COLSPAN="ccolspan" NOWRAP cattributes>cvalue</TD>
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);
This procedure generates
<TH ALIGN="calign" DP="cdp" ROWSPAN="crowspan" COLSPAN="ccolspan" NOWRAP cattributes>cvalue</TH>
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.
HTP.TABLECLOSE;
This procedure generates
</TABLE>
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);
This procedure generates
<TABLE "cborder" NOWRAP ALIGN="calign" CLEAR="cclear" cattributes>
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.
HTP.TABLEROWCLOSE;
This procedure generates
</TABLE>
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);
This procedure generates
<<TR ALIGN="calign" VALIGN="cvalign" DP="cdp" NOWRAP catttributes>
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.
HTP.TELETYPE( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to render in a fixed width typewriter font. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<TT cattributes>ctext</TT>This procedure generates the <TITLE>
and </TITLE>
tags which specify the text to display in the titlebar of the browser window.
HTP.TITLE( ctitle IN VARCHAR2);
Parameter | Description |
---|---|
|
The text to display in the titlebar of the browser window. |
This procedure generates
<TITLE>ctitle</TITLE>
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.
HTP.ULISTCLOSE;
This procedure generates
</TABLE>
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
<UL CLEAR="cclear" WRAP="cwrap" DINGBAT="cdingbat" SRC="csrc" cattributes>
This procedure generates the <U>
and </U>
tags, which direct the browser to render the text they surround with an underline.
HTP.UNDERLINE( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to render with an underline. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<U cattributes>ctext</U>
This procedure generates the <VAR>
and </VAR>
tags which direct the browser to render the text they surround in italics or however "variable" is defined stylistically.
HTP.VARIABLE( ctext IN VARCHAR2, cattributes IN VARCHAR2 DEFAULT NULL);
Parameter | Description |
---|---|
|
The text to render in italics. |
|
The other attributes to be included as-is in the tag. |
This procedure generates
<VAR cattributes>ctext</VAR>
This procedure generates the <WBR>
tag, which inserts a soft line break within a section of NOBR
text.
HTP.WBR;
This procedure generates
<WBR>