SEND HTML TEXT

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.7


SEND HTML TEXT (htmlText{; noContext})

ParameterTypeDescription
htmlTextTextHTML text field or variable to be sent
to the Web browser
noContextBooleanTrue = 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;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

Mac to ISO, SEND HTML BLOB.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next