This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Changing Default IE XML Tree to Collapsed
- From: "Bryan Rasmussen" <bry at itnisk dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 19 Feb 2002 10:29:02 +0100
- Subject: RE: [xsl] Changing Default IE XML Tree to Collapsed
- Keywords: xsltDEV
- Reply-to: xsl-list at lists dot mulberrytech dot com
a slight error in my previous post, the function ch(e) should be
function ch(e)
{
// find the +/- symbol
mark = e.children(0).children(0);
// if it is already collapsed, expand it by showing the children
if (mark.innerText == "+")
{
mark.innerText = "-";
for (var i = 1; i < e.children.length; i++)
e.children(i).style.display = "block";
}
// if it is expanded, collapse it by hiding the children
else if (mark.innerText == "-")
{
mark.innerText = "+";
for (var i = 1; i < e.children.length; i++)
e.children(i).style.display="none";
}
}
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list