[xul-interop] How to get second column content from tree
"Dusan Halicky" <[email protected]> Fri, 20 Apr 2007 23:53:30 +0200
| Newsgroups | gmane.comp.lang.xul.general |
|---|---|
| Message-ID | <[email protected]> |
--===============0918990094==
Content-Type: multipart/alternative;
boundary="----=_Part_122150_13323626.1177106010938"
------=_Part_122150_13323626.1177106010938
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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.
------=_Part_122150_13323626.1177106010938
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi, <br><br>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). <br><br>function setText(treeID,textID)<br>{<br> var tree =
document.getElementById(treeID);<br> var selection = tree.contentView.getItemAtIndex(tree.currentIndex);<br> var text = selection.firstChild.firstChild.getAttribute("label");<br> document.getElementById(textID).value = "You selected cell: " + text
<br>}<br><br>But this always return first column of selected row. How can I get content of second column? Thanks.<br>
------=_Part_122150_13323626.1177106010938--
--===============0918990094==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
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/
--===============0918990094==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
XUL News Wire - http://xulnews.com
XUL Job Postings - http://xuljobs.com
Open XUL Alliance - http://xulalliance.org
_______________________________________________
xul-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xul-talk
--===============0918990094==--