Click to See Complete Forum and Search --> : menu[count][0].ref has no properties.


tjm77
02-24-2003, 08:03 AM
I am trying to use a pop out bar for my site as my banner. The page functions correctly when I view the pageheader.htm but when I use the page include function I get the menu[count][0].ref has no properties.

I don't understand why it won't work in the page include funtion. It doesn't like this : visibility = 'visible';

here is the block of code where it fails

function hideAllBut(menuNum) {
var keepMenus = getTree(menuNum, 1);
for (count = 0; count < menu.length; count++)
if (!keepMenus[count])
menu[count][0].ref.visibility = 'visible';

any ideas?

thanks

Phil Karras
02-24-2003, 02:48 PM
No, I believe your statement "menu[count][0].ref has no properties. " was correct. This item has no properties and until you get it to have properties you will not be able to change the as yet non-existant property .visibility

You need to find out where this item is defined and try to figure out why it has no properties or is not yet defined by the time you try to use it.

Good-luck.