PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
SecurityHtml (Property)
In french: SécuritéHtml
The Property SafetyHtml makes it possible to know and modify the report of the safety mechanism of the following fields:
  • Versions 26 and later
    HTML display fields.
    New in version 26
    HTML display fields.
    HTML display fields.
  • Versions 26 and later
    HTML Editor fields.
    New in version 26
    HTML Editor fields.
    HTML Editor fields.
The security mechanism of these types of control s blocks all potentially dangerous content in the control (plugins, ActiveX, Javascript code, etc.)..
Remarks:
  • It is also possible to manage the security mechanism:
    • of the Control HTML display thanks to the option "Forbid the execution of JavaScript scripts" ("Detail" tab of the description window of the Control). If this option is checked, the safety mechanism is activated.
    • of the control HTML editor thanks to the option "Allow execution of JavaScript code in the edited document" ("General" tab of the HEX@ window of the control). The security mechanism is enabled if this option is unchecked.
  • The Control of HTML display corresponds to the new name of the edit control HTML present in version 25 and previous versions..
Example
// Retrieve a document on Internet
HTTPRequest(gsURL)
 
// Activation of the Control security mechanism of HTML display
HTML_SaisieDoc.SécuritéHtml = secHtmlMaxi
 
// Initialize the control with the document
HTM_SaisieDoc = HTTPGetResult()
Syntax

To know if the security mechanism of an Control in HTML format is activated Hide the details

<Result> = <Control used>.SecurityHtml
<Result>: Boolean constant or Boolean
Current security mode:
secHtmlNone (or False)The scripts are run. The ActiveX or plugins are displayed and run.
Remark: Scripts will not execute in the field if the Property Report of the field matches Inactive or Grayed.
secHtmlMaxi (or True)
(Default value)
No script is run (javascript, vbscript, ...). No ActiveX or plugin is displayed or run.
<Control used>: Control name
Name of control to handle:
  • HTML Display control.
  • HTML Editor control.

Enabling/disabling the security mechanism of HTML edit controls Hide the details

<Control used>.SecurityHtml = <Value>
<Control used>: Control name
Name of control to handle:
  • HTML Display control.
  • HTML Editor control.
<Value>: Boolean constant or Boolean
Security mode to apply:
secHtmlNone (or False)The scripts are run. The ActiveX or plugins are displayed and run.
Remark: The scripts will not be run in the control if Report corresponds to Inactive or Grayed.
secHtmlMaxi (or True)
(Default value)
No script is run (javascript, vbscript, ...). No ActiveX or plugin is displayed or run.
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment