7.6. Hands On: NoteTaker Events and Forms

After many chapters laying the groundwork, we've now got some useful widgets. In this session on the NoteTaker tool, we'll clean out some of the oddments the dialog box has accumulated and replace them with normal XUL form elements. We'll get rid of the properties file and submit the entered data to a Web server. If the dialog box appears as the result of an HTTP GET request, we'll populate it with parameters from that request as well.

Cleanup comes first. We'll throw away the subpanel attribute and the handle_click() code. If we still choose to disable any of the content, it now makes sense to use the form tags' own disabling features. That means all the broadcasters and half of the actions and keys ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.