4D v13.4

WEB SEND TEXT

Home

 
4D v13.4
WEB SEND TEXT

WEB SEND TEXT 


 

WEB SEND 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 WEB SEND 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 WEB SEND 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

 
INDEX

Alphabetical list of commands

 
HISTORY 

New
Created: 4D v6.7
Renamed: 4D v13

 
SEE ALSO 

Mac to ISO
WEB SEND BLOB