I have a two frames web and a
i want select a node in the menu from a page.
my_frame_name - name of frame with tree
tn - index of tree object
in - index of item in the tree
IA?ve tried it but i have this error:
Line 102: 'style' is null or is not an object
The line with error is:
get_element('top.left.i_txt' + this.o_root.n_id + '_' + this.n_id).style.fontWeight = b_deselect ? 'normal' : 'bold';
The reason is that the item you trying to select is not rendered at the page yet. So You shoud open its parent item and so on recursively.
I donA?t understand, how can i do that??
Now, my call is:
If item has not been displayed at the page yet you should force it to be displayed before select it. To do this you should open
all parent nodes of the item.
Each item has o_parent property, so you could collect all item's parents within an array and then call their open
methods starting from the root item.