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: How to open a sub item without users click?
XDeveloper
Newbie

Posts: 1
Registered: 9/14/2004
Member Is Offline
posted on 9/15/2004 at 01:23 PM Reply With Quote
How to open a sub item without users click?


Hello, I would like to expand some sub items when the page is loaded without users click.

I am using the tree menu (free version) and not using frames!

My initial page has a menu like this:
- Animals
- Colors (clicking here just expands the sub items without reload the document)

..so after click... it looks like this:
- Animals
- Colors
|- Blue (clicking here goes to a new page)
|- Green
|- Yellow

In the "Blue Page" the same menu is loaded again, but the item "Colors" appear closed.

I would like to execute an "automatic" opening.

Can anybody tell me if it is possible and if so how can i do it?

Thanks.

X
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 9/15/2004 at 01:51 PM Reply With Quote

PRO version of the product easily handles the issue. Free version has limited facilities to implement the feature. You should operate with items' ids (index of item in the internal item collection array). E.g. in your sample root item has id 0, animals folder has id 1, and so on in order of declaration in the tree_items structure.
So to expand node with id N you should call:
//
...
var mytree = new tree(...); //mytree var definition
...
//
...
mytree.toggle(N) //toggles the node
//or directly open the item
var o_item = mytree.a_index[N];
o_item.open();
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