Hi,
I have this javascript code, which get content of first column of selected
row from tree and displat it onto component with is="texID"(e.g. label).
function setText(treeID,textID)
{
var tree = document.getElementById(treeID);
var selection = tree.contentView.getItemAtIndex(tree.currentIndex);
var text = selection.firstChild.firstChild.getAttribute("label");
document.getElementById(textID).value = "You selected cell: " + text
}
But this always return first column of selected row. How can I get content
of second column? Thanks.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
XUL News Wire - http://xulnews.com
XUL Job Postings - http://xuljobs.com
Open XUL Alliance - http://xulalliance.org
_______________________________________________
xul-talk mailing list
xul-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xul-talk