yan_er04
Newbie
Posts: 1
Registered: 4/24/2006
Member Is Offline
|
| posted on 4/24/2006 at 11:56 PM |
|
|
Open specific menu by JS
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?
|
|
|
|