PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Displaying a page in an IFrame control
  • Changing the target of the IFrame control in the editor
  • Changing the target of IFrame control by programming
  • Properties associated with the IFrame control
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
Overview
WEBDEV enables you to handle an IFrame control by programming. 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 control 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 the controls: "None".
  • Action: "Display the XXX page". 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.
Note: If the target of the iFrame control does not belong to the current site, the Internet browser does not allow you to modify this target (for security reasons).

Changing the target of IFrame control by programming

To change the target of the IFrame control by 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.
Note: If the target of the iFrame control does not belong to the current site, the Internet browser does not allow you to modify this target (for security reasons).
Properties associated with the IFrame control
The following properties are used to manage the IFrame controls by programming.
TypeAllows you to find out the type of an object
InitialValueEnables you to find out the initial value of a control. For an IFrame control, this property corresponds to the name of the site page or to an empty string if the control is associated with a page of another site.
To find out the entire list of WLanguage properties that can be used with an IFrame control, see Properties associated with an IFrame control.
Minimum required version
  • Version 10
Comments
Click [Add] to post a comment