API:Web.HTTPProd.TPageProducer.OnHTMLTag
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. {{#multireplace:Web.HTTPProd.TPageProducer.OnHTMLTag|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Web.HTTPProd.TBasePageProducer.OnHTMLTag|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Web.HTTPProd.TBasePageProducer.OnHTMLTag|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.
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.