PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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
..SecurityHtml is used to find out and modify the status of the security mechanism of HTML edit controls (read-only).
The security mechanism of HTML edit controls blocks all the potentially dangerous content (plug-ins, ActiveX, Javascript code, etc.).
This property can be used on the HTML edit controls in a window.
Remark: You also have the ability to manage the security mechanism of HTML edit controls via "Allow execution of scripts" ("General" tab in the control description window). The security mechanism is enabled if this option is unchecked.
Example
// Retrieve a document on Internet
HTTPRequest(gsURL)
 
// Enable the security mechanism of the edit control
EDT_EditDoc..SecurityHtml = secHtmlMaxi
 
// Initialize the control with the document
EDT_EditDoc = HTTPGetResult()
Syntax

Finding out whether the security mechanism of an HTML edit control is enabled Hide the details

<Result> = <Edit control>..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: The scripts will not be run in the control if the ..State property of the control corresponds to Inactive or Grayed.
secHtmlMaxi (or True)
(Default value)
No script is run (javascript, vbscript, ...). No ActiveX or plugin is displayed or run.
<Edit control>: Control name
Name of the HTML edit control to use. This HTML edit control must be read-only.

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

<Edit control>..SecurityHtml = <Value>
<Edit control>: Control name
Name of the HTML edit control to use. This HTML edit control must be read-only.
<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 the ..State property of the control 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