Tree Box Objects

Debugging Example 2

User:Morishoji has fixed a bug in example 2 (by changing "" to ""), but that fix has not been propagated to the ex_treeboxobject_2.xul file. "source" or "view" files. I've just edited the wiki page to fix another bug: trying to access when column.value is null because the mouse is not over a column. The combined effect of these fixes is to change the line

 if (typeof column.value != "string") column.value =;


 if (column.value && typeof column.value != "string")
   column.value =;

Could someone edit ex_treeboxobject_2.xul accordingly, please? Thanks, Chris Chittleborough 01:32, 3 January 2007 (PST)

The view and source sample files have been updated. --Sheppy 11:29, 3 January 2007 (PST)

Could someone PLZ enclose the script in ex_treeboxobject_2.xul with CDATA-marks or change the && to &&?


The XUL file linked in example two shows up with the following error: 

XML Parsing Error: not well-formed
Line Number 18, Column 21:  if (column.value && typeof column.value != "string")

I also copy and pasted the code in the Addon: Extension developer -> XUL Editor and got the same error. Can someone fix it please. Thank you. --Nalhilal 24 February 2010

Document Tags and Contributors

 Contributors to this page: Nalhilal, Yaroukh, Sheppy, Chris Chittleborough
 Last updated by: Nalhilal,