thu
Junior Member
Posts: 3
Registered: 6/15/2005
Member Is Offline
|
| posted on 6/17/2005 at 05:53 PM |
|
|
How to instance 2 tree menu in the same page
I have the same problem
Hi,
I like to use 2 trees.
If use ie, I have the error: 'style' is null or not an object.
if use netscape, I didnot see the error but the tree function didn't work correctly.
See my example files attached
They are only small examples but I want to see if I click on icons or checkbox of parent nodes, the value that I am tracing is right.
I am trying debug this one for 3 days!!!! Thanks in advance for your hint
Attachment: askTreeMenu.zip (3.42kb)
This file has been downloaded 569 times
|
|
|
tedqn
Junior Member
Posts: 5
Registered: 9/1/2005
Member Is Offline
|
| posted on 9/2/2005 at 05:20 PM |
|
|
Each tree needs to have its unique name
Both your trees have the same name. For example,
var TREE00000_ITEMS = [
['Information view options', 0,
[elementNode
],
[actions, 0,
[homePage],
[properties]
]
]
];
new tree (TREE0000_ITEMS, TREE_TPL);
var TREE1111_ITEMS = [
['Information view options', 0,
[elementNode
],
[actions, 0,
[homePage],
[properties]
]
]
];
new tree (TREE1111_ITEMS, TREE_TPL);
|
|
|
|