O'Reilly logo

Rapid Application Development with Mozilla™ by Nigel McFarlane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required