ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / IFrame control
  • Overview
  • Displaying a page in an IFrame control
  • Changing the target of the IFrame control in the editor
  • Changing the target of IFrame control programmatically
  • IFrame control properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Manipulating iFrame controls programmatically
Overview
WEBDEV enables you to manipulate an IFrame control programmatically. To do so, use the variable of the IFrame control directly in the code.
The variable of the IFrame control corresponds to the name of the IFrame control. The variable type is a character string.
Important: An IFrame field can be programmed in server code.
Displaying a page in an IFrame control

Changing the target of the IFrame control in the editor

The target of an iFrame control can be easily changed via a button or a link.
The target can be changed only if the target of the iFrame control belongs to the current site.
To do so, create a button or a link with the following characteristics:
  • Operation on fields: "None".
  • Action: "Display page XXX".. All you have to do is select the page to display.
  • Destination: "In an IFrameXXX".. All you have to do is select the name of the iFrame control.
Remark: If the target of the IFrame field does not belong to the current site, the Internet browser will not allow you to modify this target (for security reasons).

Changing the target of IFrame control programmatically

To change the target of the IFrame control through programming, use:
  • PageDisplay and specify the alias of the iFrame control into which the page must be displayed (browser code).
  • ChangeTarget and specify the alias of the iFrame control into which the page must be displayed (browser code) then PageDisplay in server code.
The target can be changed only if the target of the iFrame control belongs to the current site.
Remark: If the target of the IFrame field does not belong to the current site, the Internet browser will not allow you to modify this target (for security reasons).
IFrame control properties
The following properties are specific to the programmed management of IFrame field characteristics.
InitialValueAllows you to get the initial value of a control. For an IFrame control, this property is set to the name of the site page or to an empty string if the control is associated with a page of another site.
TypeAllows you to get the type of an object
For a complete list of WLanguage properties that can be used with IFrame controls, see IFrame control properties.
Minimum version required
  • Version 10
Comments
Click [Add] to post a comment

Last update: 10/04/2024

Send a report | Local help