WEBDEV Concepts
Part 2: Developing a site 73 Where should the page be displayed? A page is displayed in a specific "target": current page, new browser tab, etc. The target can be defined: • in the page editor: no programming is required. • in the code editor, in an event of the Button (or Link) control. Several WLanguage functions allow you to open a new page (or frameset). The main functions are: • PageDisplay (for pages), • FramesetDisplay (for framesets), • PopupDisplay (for popup pages), • PageDisplayDialog (for modal page display). Selecting the target in the page editor (most common method) In a Button control, to define the target of the page to display: • Open the description of the Button or Link control (right click, "Description"). • In the list of targets, select a preset target or a frame (in the case of a frameset). Remark : The preset targets will be presented later in this manual. Selecting the target in the code editor When the target depends on a choice made by the user, this target must be defined through programming. For example, if the user does not enter their password, an error page will appear in a new browser tab; otherwise, the next page will appear in the current browser. ChangeTarget is used to change the target of an action through programming. This function must be used in browser code.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==