7.7. Debug Corner: Diagnosing Events and Forms

Forms and events aren't that challenging, unless you are in the business of constructing your own widgets. A few standard techniques can make life easier.

7.7.1. Unpopping Menus

The <menupopup> tag only appears when you click on its associated button. This can be a nuisance if you just want to see that the constructed contents are correct. You can embed the popup in the normal flow of the XUL document by changing its display style as follows:

menupopup { display: -moz-box ! important }

If you do this, the popup won't work interactively any more, but at least you can see its contents easily. Figure 7.6 shows the same document as in Figure 7.3, but with this style added.

Figure 7.6. Examples of embedded ...

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.