10.9. Hands On: NoteTaker Dialogs

In this “Hands On” session, we'll take advantage of the windowing aspects of XUL to clean up the NoteTaker Edit dialog box some more. We'll also coordinate the application window and the Edit dialog window a little so that they work together. These two items consist of a number of tiny jobs:

Replace <window> with <dialog> in the Edit dialog box.
Replace plain <button> handlers with <dialog> button handlers.
Implement the notetaker-open-dialog command on the main browser window so that window.openDialog() is used to display the Edit dialog box.
Implement the notetaker-close-dialog command.
Find and implement a strategy for handling data that is used by more than one window.
Work out what kind of ...

Get Rapid Application Development with Mozilla™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.