My tree always reverts back to it's initial state whenever I click on a link. What it should do is display the tree as it was when I clicked on the link
Any help is appreciated. I would like to avoid putting information in the querystring to solve this problem (though I can't even figure out how to solve this issue like that)
Here is a snippet of my code:
<script language="JavaScript">
function showBranch(branch) {
var objBranch = document.getElementById(branch).style;
if(objBranch.display=="none")
objBranch.display="block";
else
objBranch.display="none";
}
</script>
<div class="nav_bar" onClick="showBranch('branch1');">
Employees</div>
<span class="nav_branch" id="branch1" >
<a href="ContList.php">Contact List</a>
<a href="EmpInfo.php">Employee Info</a>
</span>
</div>
Any help is appreciated. I would like to avoid putting information in the querystring to solve this problem (though I can't even figure out how to solve this issue like that)
Here is a snippet of my code:
<script language="JavaScript">
function showBranch(branch) {
var objBranch = document.getElementById(branch).style;
if(objBranch.display=="none")
objBranch.display="block";
else
objBranch.display="none";
}
</script>
<div class="nav_bar" onClick="showBranch('branch1');">
Employees</div>
<span class="nav_branch" id="branch1" >
<a href="ContList.php">Contact List</a>
<a href="EmpInfo.php">Employee Info</a>
</span>
</div>