API:Web.HTTPProd.TPageProducer.OnHTMLTag

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnHTMLTag: THTMLTagEvent read FOnHTMLTag write FOnHTMLTag;

C++

__property OnHTMLTag;

Properties

Type Visibility Source Unit Parent
event published
Web.HTTPProd.pas
Web.HTTPProd.hpp
Web.HTTPProd TPageProducer

Description

Occurs when the page producer needs to interpret the value of an HTML-transparent tag in the HTML template.

Web.HTTPProd.TPageProducer.OnHTMLTag inherits from Web.HTTPProd.TBasePageProducer.OnHTMLTag. All content below this line refers to Web.HTTPProd.TBasePageProducer.OnHTMLTag.

Occurs when the page producer needs to interpret the value of an HTML-transparent tag in the HTML template.

Write an OnHTMLTag event handler to convert an HTML-transparent tag into the corresponding HTML commands that can be interpreted by a Web browser. If an OnHTMLTag event is not supplied, the HTML-transparent tags in the HTML template will be replaced by empty strings.

Note: The sequence of HTML that the event handler produces for an HTML-transparent tag can contain HTML-transparent tags for another page producer to convert. For example, one page producer might have a template that represents the format of the final HTTP response. It could read the HTTP request and, for each section in the request, assemble a set of HTML-transparent tags with parameters based on the request. Another page producer might take the content of the first page producer, and interpret those parameters.

See Also