8 Auxiliary HTML Functions

Contents of this section

WebKit also provides several auxiliary functions to save you some of the details of writing HTML output in your CGI response function. You don't need these, but they can save you a little time and distraction.

wkhtml() - Inserts the <HTML> tag
wkhtmlend() - Inserts the < /HTML> tag
wkbody() - Inserts the <BODY> tag
wkbodyend() - Inserts the < /BODY> tag
wktitle (cTitle) - Inserts the <TITLE...> tag
wkline (cText) - Output a line with a <BR> (linebreak) tag at the end
wklink (cText, cURL) - Inserts a link to the URL indicated by cURL with text cText
wktable (a2data, cCaption) - Generates a Netscape table with two dimensions
of data and an optional caption 

Finally, if you are in a real hurry, you can generate HTML output with a minimum of programming effort with the following commands used in order:

BEGIN HTML OUTPUT [<cTitle>] - Start output with optional page title<BR>
WRITE HTML OUTPUT <xValue>, ... - Write a line of output, like QOUT()<BR>
END HTML OUTPUT - Finish output and send it back to the browser client<BR>

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter