4D v12.4

SEND HTML TEXT

Home

 
4D v12.4
SEND HTML TEXT

 

SEND HTML TEXT 


 

SEND HTML TEXT ( htmlText {; noContext} ) 
Parameter Type   Description
htmlText  Text in HTML text field or variable to be sent to the Web browser
noContext  Boolean in True = Go to non contextual mode False or omitted = Remains in the current mode

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.

Note: This command is similar to the SEND HTML BLOB command using a BLOB with a “html/txt” type.

The noContext parameter is obsolete beginning with version 12 of 4D. It is kept only for compatibility.

The references to the 4D variables and 4DSCRIPT type tags (if any) in the text are always analyzed.

Example  

The following method:

 TEXT TO BLOB("<html><head></head><body>"+String(Current time)+"</body></html>";$blob;UTF8 Text without length)
 WEB SEND BLOB($blob;"text/html")

... can be replaced by the single line:

 WEB SEND TEXT("<html><head></head><body>"+String(Current time)+"</body></html>")

 
PROPERTIES 

Product: 4D
Theme: Web Server
Number: 677

 
HISTORY 

Created: 4D v6.7

 
SEE ALSO 

Mac to ISO
SEND HTML BLOB