By Troy Reimer | 5/12/13 2:16 PM | - | Added by Per Henrik Lausten
If you are using the Extension Library for XPages, you know you can drag a dialog control on the page and use that to display popup style messages to the user. Essentially it is very similar to the core JavaScript alert() function but styled to use the OneUI look. That method seems very inefficient to me. If I am writing client-side JavaScript code I would rather not have to remember to add another control to the page before using an alert(), or a reasonable facsimile. I’ve created a function that allows you to pop a OneUI dialog whenever you need it with no additional controls added to the page.