Visit Mozilla.org

Talk:XUL Tutorial:Tree Box Objects

From MDC

[edit] Debugging Example 2

User:Morishoji has fixed a bug in example 2 (by changing "column.id" to "column.value.id"), 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 column.value.id 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 = column.id;

to

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

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 &&?