Board Logo

Open specific menu by JS
yan_er04 - 4/24/2006 at 11:56 PM

I'm not sure what is wrong. I am trying to open a specific level using the following JS. Taking things 1 step at a time. I want to test to get the length of the tree but failed. Can someone help me?

to declare: DC_TREE1 = new tree(DC_TREE, tree_tpl);

at the end of the html page
alert(DC_TREE1.a_index.length); // this does not work
alert(eval(DC_TREE1 & (".a_index.length")); //this returns 0

But my tree is not 0 level! Wat's wrong?


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/