D
dkirkdrei
I am using the javascript below in conjuction with PHP to dynamically
build a cascading menu of part assemblies from a database. The
cascading menu allows the user to "drill" down to the single part level
of larger part assemblies This works very well except for when a person
needs to search for a specific item. Edit>Find on this page(ctrl+f)
will not work because unless the menu has been broken down or "cascded"
if you will, the subparts reside only in the source code and not on the
screen within the browser. Is there a way to build this cascading or
"toggle" menu so that all subassemblies are shown from the begining? In
other words, the menu cascades automatically when the page loads.
Thanks in advance for any help that can be given...
<script>
function toggleMenu(currMenu) {
if (document.getElementById) {
thisMenu = document.getElementById (currMenu).style
if (thisMenu.display == "block") {
thisMenu.display = "none"}
else {
thisMenu.display = "block"}
return false}
else {
return true}
}
</script>
I am also using the style below to offset each row as you tier down
into the subassemblies...
<STYLE TYPE="TEXT/CSS">
<!--
.menu {display:none; margin-left:20px}
-->
</STYLE>
build a cascading menu of part assemblies from a database. The
cascading menu allows the user to "drill" down to the single part level
of larger part assemblies This works very well except for when a person
needs to search for a specific item. Edit>Find on this page(ctrl+f)
will not work because unless the menu has been broken down or "cascded"
if you will, the subparts reside only in the source code and not on the
screen within the browser. Is there a way to build this cascading or
"toggle" menu so that all subassemblies are shown from the begining? In
other words, the menu cascades automatically when the page loads.
Thanks in advance for any help that can be given...
<script>
function toggleMenu(currMenu) {
if (document.getElementById) {
thisMenu = document.getElementById (currMenu).style
if (thisMenu.display == "block") {
thisMenu.display = "none"}
else {
thisMenu.display = "block"}
return false}
else {
return true}
}
</script>
I am also using the style below to offset each row as you tier down
into the subassemblies...
<STYLE TYPE="TEXT/CSS">
<!--
.menu {display:none; margin-left:20px}
-->
</STYLE>