Bruce Gust
asked on
Why does this part of my menu not disappear?
Head out to http://brucegust.com/portfolio/verizon/test.php
Click on the menu icon and click on "network operations." Now click on "system performance." You'll notice that when you do, the "network operations" menu disappears. That happens with every menu option EXCEPT "budget reports and support."
It's a simple series of functions that does all this and it's pretty redundant which is what makes the fact that the "budget reports and support" button doesn't trigger the "network operations" menu option to disappear.
For example, on line 158 you see:
function performance()
{
$('#regions_sub').hide();
$('#planning_sub').hide();
$('#budget_sub').hide();
$('#network_ops_sub').hide ();
$('#system_perf_sub_level' ).hide();
}
"network_ops_sub" is the id of my ul that needs to fade. This particular example works just fine.
But when you go up to line 143, you'll see the "budget" function and although the code is pretty much identical, the "network_ops_sub" doesn't disappear.
Why? What am I missing?
Click on the menu icon and click on "network operations." Now click on "system performance." You'll notice that when you do, the "network operations" menu disappears. That happens with every menu option EXCEPT "budget reports and support."
It's a simple series of functions that does all this and it's pretty redundant which is what makes the fact that the "budget reports and support" button doesn't trigger the "network operations" menu option to disappear.
For example, on line 158 you see:
function performance()
{
$('#regions_sub').hide();
$('#planning_sub').hide();
$('#budget_sub').hide();
$('#network_ops_sub').hide
$('#system_perf_sub_level'
}
"network_ops_sub" is the id of my ul that needs to fade. This particular example works just fine.
But when you go up to line 143, you'll see the "budget" function and although the code is pretty much identical, the "network_ops_sub" doesn't disappear.
Why? What am I missing?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hey, Tom!
It was in the midst of going back and cleaning up the code that I found the problem: The function that was giving me grief was one that I had inadvertently duplicated. Once I eliminated the redundancy (as well as clean things up in general), it started singing on key.
Thanks!
It was in the midst of going back and cleaning up the code that I found the problem: The function that was giving me grief was one that I had inadvertently duplicated. Once I eliminated the redundancy (as well as clean things up in general), it started singing on key.
Thanks!
Glad to hear it. Thanks for the points.
jQuery / JavaScript and most current browser really need a 100% correct DOM - otherwise you can never expect that DOM manipulations work as designed.
HTH
Rainer