version 6.7
SEND HTML TEXT (htmlText{; noContext})
Parameter | Type | Description | |
htmlText | Text | HTML text field or variable to be sent | |
to the Web browser | |||
noContext | Boolean | True = Go to non contextual mode | |
False or omitted = Remains in the current mode |
Description
The SEND HTML TEXT command directly sends HTML formatted text data.
The htmlText parameter contains the data to be sent. As 4D does not check the parameter content, make sure that the HTML encoding is correct. The text variable should be expressed using the ISO Latin-1 character map.
Note: This command is similar to the SEND HTML BLOB command using a BLOB with a "html/txt" type.
The noContext parameter indicates to the 4D Web server that you want to switch from the contextual mode to the non-contextual mode when executing the command.
In this case, pass True in the noContext parameter if you want to use the non-contextual mode. Pass False or nothing if you want to use the current mode.
The references to the 4D variables and 4DSCRIPT type tags (if any) in the text are always analyzed, regardless of the mode.
Example
The following method:
TEXT TO BLOB("<html><head></head><body>"+String(Current time)+"</body></html>";$blob;UTF8 Text without length) SEND HTML BLOB($blob;"text/html")
... can be replaced by the single line:
SEND HTML TEXT("<html><head></head><body>"+String(Current time)+"</body></html>")
See Also