Displays a Popup control in a page with a DDW effect (Dim Disabled Windows). This function is used to easily simulate a dialog box in browser code, by using a Popup control of the page.
Remark: To display a Popup control, PopupDisplay can be used:
- in a button defined with "Run browser click code only". In this case, only the browser code of the button will be run.
- in a button defined with "Run server and browser codes" (that sends values to the server). AJAX must be enabled in the code of this button. In this case, the browser code and the server code of button will be run.
Versions 18 and later
New in version 18
PopupDisplay(POPUP_Question, popupCenter)
Syntax
Displaying a Popup control at a specific position Hide the details
PopupDisplay(<Popup> [, <Display position> [, <X> [, <Y>]]])
Remarks
- The Popup control displayed can be hidden with PopupClose.
- The browsers do not refresh the display in the middle of a JavaScript code: PopupDisplay and PopupClose must be used in different events/processes. If these functions are used in the same event/process, the Popup control is not displayed.
- Two different Popup or Cell controls cannot be displayed at the same time by PopupDisplay or CellDisplayDialog.
- The DDW (Dim Disabled Windows) can be disabled and customized:
This function cannot be used in the scheduled tasks and in the delayed tasks. See Scheduled and delayed tasks for more details.
Business / UI classification : UI Code
Component : wd260wl2js.dll