|
|
|
|
|
- Difference with FileDisplay
- Use in PHP
- Pre-launched sessions
- Web services
StringDisplay (Function) In french: ChaîneAffiche
Not available
Returns a specific string (or a buffer) to the client browser in response to a request. Allows you to display documents in the user's browser without using a file. s is string
s = "<HTML>Text '''bold'''</HTML>"
StringDisplay(s)
Syntax
StringDisplay(<Buffer\Character string> [, <MIME type> [, <Name of file for backup>]])
<Buffer\Character string>: Buffer or character string Buffer or character string that will be displayed in the browser. <MIME type>: Optional Ansi character string - Name of MIME type to use. The MIME type allows you to indicate to the browser the type of string to use. More than 150 types are defined in the MIME communication standard (available on Internet). The most common values recognized by most browsers are:
- "application/pdf": PDF file (*.pdf)
- "text/html": HTML page (*.htm, *.html)
- "text/plain": text file (*.txt)
- "image/gif": GIF image (*.gif)
- "image/jpeg": JPEG image (*.jpg, *.jpeg)
- "video/mpeg": MPEG video (*.mpg, *.mpeg)
- MIME type corresponding to one of the following constants:
| | mimeTypeXMLApplication | XML content. | mimeTypeBinary | Binary content (byte stream). | mimeTypeDOC | Word file (*.doc) | mimeTypeDOCX | Word file (*.docx) | mimeTypeGIF | GIF image (*.gif) | mimeTypeHTML | HTML page (*.htm, *.html) | mimeTypeJPEG | JPEG image (*.jpg, *.jpeg) | mimeTypeJSON | JSON content. | mimeTypePDF | PDF document (*.pdf) | mimeTypePNG | JPEG image (*.png) | mimeTypeSOAP | SOAP content in XML format. | mimeTypeText | Text (*.txt) | mimeTypeXMLText | XML text | mimeTypeXLS | Excel file (*.xls) | mimeTypeXLSX | Excel file (*.xlsx) | mimeTypeZIP | ZIP file (*.zip) |
<Name of file for backup>: Optional character string Name of file to save if the Web user wants to download the file onto his computer. If this parameter is specified, the file download is automatically proposed. Remarks Pre-launched sessions If your project uses pre-launched sessions, this function must not be used in the project initialization event. This function must be used in the "Initialization in pre-launched session mode" event. Web services This function can be used in web services. Business / UI classification: UI Code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|