This demo displays two main concepts (and one additional option).
The first is the modeless popup (navigation can continue in both windows).
A phantom element is used to show a link that when clicked will popup a modeless window. The link runs “action-modeless-popup”. The action uses fm:call-module to run a different module (“FOX_TESTER”) in a modeless (type=”modeless”) popup (theme=”popup”) window.
The “callback-action” attribute specifies an action to be run on exit from the called module.
Calls can also be modal (new module is opened in the same window).
The second is the Confirm popup.
Another phantom element is used to show a link that when clicked will popup a Confirm dialogue box. The link runs “action-confirm”. The action specifies fox:confirm=”Confirm?”. The contents of this attribute will be displayed in a box and the user presented with an option to confirm the action or cancel it.
Pressing the Confirm button will then perform the Do section of the action. In this case, a further popup is created saying ‘Confirmed’. This is carried out by the” fm:alert” function which can be used for static text messages or dynamically generated strings.