Jump to: navigation, search

2,344 bytes added, 19:09, 3 November 2006
Unfortunately, no simple solution to this was posted. A workaround is to open the content in a new window using "" and send titlebar=”no” as one of the flags in the 3rd argument.
=== [ Are XUL attributes integers?] ===
Attributs such as left="100" or top="200" look as if they're integers but they are actually handled as strings.
To use them as integers use JavaScript's [ parseInt()] function.
=== [ Using the "icon" attribute on a button] ===
From [ reference]:
:This attribute should be used to set the usage for common buttons. Some platforms display these buttons with a small icon indicating their usage. This should be used in place of the image attribute. Possible values include: accept, cancel, help, open, save, find, clear, yes, no, apply, close, print, add, remove, refresh, go-forward, go-back, properties, select-font, select-color, network. If you are using a button that matches one of these common usages, use the icon attribute to indicate this.
=== [ Dynamic Objects in Toolbar] ===
There may be a few ways to implement this:
#By building your menupopup from an RDF datasource, which could be generated on the server.
#By getting data (e.g. JSON string) from the server, parsing it on client, and building the menupopup using DOM methods (such as document.createElementNS).
#By getting data as XML from the server. (server can just send the XUL code to use for popup - alternatively it can send generic XML describing the attributes of the items in the menu and you generate the XUL on client by applying an XSLT transform.)
=== [ Can I change a XUL tree cell/row/item background color with Javacript?] ===
To set the background color you need to set the property for the cell/row and not for the item.
An example of this is:
selectedtreeitem = tree.view.getItemAtIndex(tree.currentIndex);
electedtreeitem.firstChild.setAttribute('style', 'background: #FF0000');
== UnAnswered Questions (UAQ) ==

Navigation menu