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 security mechanism for the edit controls in HTML format.
The security mechanism of the edit controls in HTML format locks all the contents that can be potentially dangerous in the control (plug-ins, ActiveX, Javascript code, etc.).
This property can be used on the edit controls in HTML format found in the window.
Note: 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 is enabled for an edit control in HTML format Hide the details

<Result> = <Control name>..SecurityHtml
<Result>: Boolean constant or Boolean
Current security mode:
secHtmlNone (or False)The scripts are run. The ActiveX or plugins are displayed and run.
Note: The scripts will not be run in the control if the ..State property of the control corresponds to Inactive or Grayed.
Android The secHtmlNone constant is not available.
secHtmlMaxi (or True)
(Default value)
No script is run (javascript, vbscript, ...). No ActiveX or plugin is displayed or run.
Android The secHtmlMaxi constant is not available.
<Control name>: Character string (without quotes)
Name of edit control to use.

Enabling/Disabling the security mechanism for the edit controls in HTML format Hide the details

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