Changes

Jump to: navigation, search

Mozilla.dev.tech.xul

2,344 bytes added, 19:09, 3 November 2006
FAQ
Unfortunately, no simple solution to this was posted. A workaround is to open the content in a new window using "window.open" and send titlebar=”no” as one of the flags in the 3rd argument.
 
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/95da86a0014e6ae4/89995304ae2089a3#89995304ae2089a3 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 [http://www.w3schools.com/jsref/jsref_parseInt.asp parseInt()] function.
 
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/ed8140804433a206/a347e9844466abf2#a347e9844466abf2 Using the "icon" attribute on a button] ===
 
From [http://www.croczilla.com/~alex/xulplanet/elemref/ref_button.html#attr_icon XULPlanet.com 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.
 
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/26293bd2f930e49c/403c3ea9180ef991#403c3ea9180ef991 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.)
 
=== [http://groups.google.com/group/mozilla.dev.tech.xul/browse_thread/thread/c38b314ec14bf039/b3fafe8e0a90102c#b3fafe8e0a90102c 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) ==
1
edit

Navigation menu