Using dialogs in web applications is never a trivial thing to do. Trinidad doesn’t offer us a solution that makes using dialogs trivial, but the Trinidad dialog framework does make the use of dialogs a lot easier. Before we dive into this dialog framework, let’s briefly understand what the unique features of a dialog are. According to Wikipedia (http://en.wikipedia.org/wiki/Dialog_box), a dialog (box) is:
a special window, used in user interfaces to display information to the user, or to get a response if needed.
From a software engineering perspective, we should also realize that the same dialog box can potentially be used from different screens in an application. This means that a dialog should not have to know anything about the page it is called from. Now let’s see how the Trinidad dialog framework helps us to create dialogs that can return values to their calling pages without any knowledge of the calling page. We’ll do this by building an example dialog. We’ll build...