SET HTML ROOT

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.5 (Modified)


SET HTML ROOT (pathnameHTML)

ParameterTypeDescription
pathnameHTMLStringHTML Pathname to default directory for HTML files

Description

The SET HTML ROOT command is used to modify the default directory or folder where 4D looks for the HTML file you pass as a parameter to the command SEND HTML FILE.

Warning: The SET HTML ROOT command works in contextual mode only. To set a default HTML root folder in non-contextual mode, use the Default HTML Root area in the Preferences dialog box. For performance reasons, it is usually more judicious to set the default HTML root folder in the Preferences, whatever the execution mode of the Web server.

The pathname you specify must be an HTML pathname, where the directory or folder names are separated by a slash ("/") character, no matter what the platform. For more information about HTML pathnames, please refer to the Language Reference part of any HTML manual you can find in bookstores.

If you specify an invalid pathname, an OS File manager error is generated. You can intercept the error with an ON ERR CALL method. If you display an alert or a message from within the error method, it will appear on the browser side.

Note: The SET HTML ROOT command takes into account the default HTML root folder defined in the Preferences of the database. For more information on this folder, please refer to section Connection Security.

See Also

ON ERR CALL.

Error Handling

If you specify an invalid pathname, an OS File manager error is generated. You can intercept the error with an ON ERR CALL method.


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