wwResponse::HTMLHeader

This method provides a high level HTML header generation routine. By default it creates the following:

  • HTTP Header
  • <HEAD> section with a <TITLE> tag
  • <HTML><BODY> tags
  • HTML text in a large font of the header text

The method is configurable so that you can pass custom HTTP headers, leave out the HTML heading and a few other options.
o.HTMLHeader(tcHeader,tcTitle,tcBackground,tcContentType,tlNoOutput)

Return Value

"" or string if tlNoOutput = .T.

Parameters

tcHeader
The header of the document. This is the large text HTML generated at the top of the HTML document. Not generated if this value is passed in as blank or omitted.

tcTitle
Optional - The text for browser's title bar. If not passed the header is used.

tcBackground
Optional - Allows you to specify a background color or image.

tvContentType
Optional - By default this method uses a default HTTP header. You can pass in a custom HTTP header option (see ContentTypeHeader()) or an wwHTTPHeader object.

tlNoOutput
When set to .T. output is not sent to file, instead returning the result as a string.

Example

Response.HTMLHeader("Customer Demo Example","West Wind Customer Demo")

Response.Write("Hello World")

Response.HTMLFooter()

See also:

Class wwResponse | wwResponse::HTMLFooter | wwResponse::ContentTypeHeader | Class wwHTTPHeader

© West Wind Technologies, 1996-2022 • Updated: 11/26/15
Comment or report problem with topic