Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Select a node from a page
ajsaez
Junior Member

Posts: 3
Registered: 6/22/2004
Member Is Offline
posted on 6/22/2004 at 11:09 AM Reply With Quote
Select a node from a page


I have a two frames web and a
i want select a node in the menu from a page.
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 6/22/2004 at 11:59 AM Reply With Quote

parent.my_frame_name.trees[tn].select(in);
my_frame_name - name of frame with tree
tn - index of tree object
in - index of item in the tree
View User's Profile View All Posts By User U2U Member
ajsaez
Junior Member

Posts: 3
Registered: 6/22/2004
Member Is Offline
posted on 6/25/2004 at 09:39 AM Reply With Quote
I have the next problem


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';
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 6/25/2004 at 09:49 AM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
ajsaez
Junior Member

Posts: 3
Registered: 6/22/2004
Member Is Offline
posted on 6/25/2004 at 09:54 AM Reply With Quote

I donA?t understand, how can i do that??
Now, my call is:
parent.left.trees[1].select(45)
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 6/25/2004 at 10:31 AM Reply With Quote

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.
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos:
Frames targeting
Win help style
Free Download Free Download
Free Download Menu Builders
Online Builder
Product Documentation Documentation:
Documenation Page
Support Forum Technical Support
Support Forum
   

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004