... to the stylesheet; a
binding is attached with the special -moz-binding attribute. The style
selector must be associated with the bound element in the XUL file. In the
following example, the ... model can.
7. 2.2. The XBL Content Element
The <binding> element requires an id attribute to make the binding
unique within the entire document. In the general XM...
... Chapter 7. Extending the UI with XBL- P2
The code you see here is not necessary in this binding, but it shows you the
format for executing code in the destructor. Destructors ... and the event name is
placed in the event attribute minus the "on" prefix. The handler in the
code shown above places the focus in the inputfield when the mouse
goes o...
...
"chrome://mypackage/content/myBindings.xml#super");
Notice that the URL used to access the binding takes the same format as in
the CSS property i.e., the path to the file and the id of the binding
qualified by #.
Neither addBinding nor ... Chapter 7. Extending the UI with XBL- P3
Although it is most commonly used just for getting and setting values...
... Chapter 7. Extending the UI with XBL- P4
7. 4.4. Extra Binding Content and Insertion Points
All examples in the chapter have so far dealt with standard binding content
rendering within a bound ... done with the XBL <children> element
7. 4.4.1. Working with children of the bound element
Zero or more children can be contained in anonymous content. These
childr...
... This simple example "spells" the object out to the
console. Since the DOM recognizes the window as another element (albeit
the root element) in the Document Object Model, you can use ... firstChild
. . .
The output in Example 5-2
is a small subset of all the DOM properties
associated with a XUL window and the other XUL elements, but you can
see all of them i...
... attribute), then the event "bubbles," or travels further up into the
hierarchy of elements above the button. The event handlers in Example 5-3
use simple inline JavaScript to show that the ...
ancestor of the event target (i.e., any node above the event-raising element in
the node hierarchy), you can use event capturing to handle the event in the
ancestor be...
... a value to the res property of the passed-
in object. The object is in the scope of the newly created window. When
control is passed back to the script that launched the window, the return
value ...
names for those menuitems.
The variable l is the length of the array. The variable newElement is a
placeholder for elements created by using the createElement method...
...
Note the first two lines in the function and the way they work together to
create the fp filepicker object. The first line in the function assigns the
name of the nsFilepicker interface to the ... createInstance( ) method on
the class to select the interface you want to use. These two steps are often
done together, as in the following example, which gets the comp...
... does the overlay know where to overlay itself? The IDs of the
overlay children and the original XUL are matched to find the target within
the files, but the manifest that accompanies the overlay ...
locale,install,url,resource:/chrome/xfly/locale/en-
US/
These entries tell the chrome registry that, in addition to all of the packages
that make up the main Mozilla brow...
... other platforms, the installation puts these resources in the
application directory itself.
In the case of the Mozilla browser, the XPIs manage the transfer and registry
of all components the ... instructions. The relationship of
the various parts of the installation process the XPI itself, the internal
installation script, the trigger script that begins the in...