|
Subject: RE: [xsl] Changing Default IE XML Tree to Collapsed From: "Bryan Rasmussen" <bry@xxxxxxxxxx> Date: Tue, 19 Feb 2002 10:29:02 +0100 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Changing Default IE XML T, Bryan Rasmussen | Thread | [xsl] Lookup (?), Kurt George Gjerde |
| RE: [xsl] Changing Default IE XML T, Bryan Rasmussen | Date | RE: [xsl] xsl:copy, Michael Kay |
| Month |