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: Need help to toggle function
rameshramani
Newbie

Posts: 1
Registered: 10/18/2005
Member Is Offline
posted on 10/18/2005 at 03:15 PM Reply With Quote
Need help to toggle function


Hi,

I took one of the code in this forum to save the state of the tree:
the code goes like this.
I will save the last selected item and pass it through the function. function will go to each parent and create a array.
the I have to open the parent using toggle function.
I am able to get the parent array but the toggle is not working.
can you please help me to fix this problem.

Code:

function selectItemById(id) {

var o_tree = (trees[0]),
o_item = o_tree.o_root.a_index[id],
n_id = o_item.n_id,
n_depth = o_item.n_depth,
a_index = o_item.o_root.a_index,
a_parents = [o_item];


while (n_depth) {
if (a_index[n_id].n_depth < n_depth) {
//a_parents[a_parents.length] = a_index[n_id];
a_parents[a_parents.length] = n_id;
n_depth--;
}
n_id--;
}

for (var i = + a_parents.length-1; i >= 1; i--)
// this is the place I have problem
this.toggle(a_parents);

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

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 10/19/2005 at 08:56 AM Reply With Quote

Code:

for (var j = + a_parents.length-1; j >= 1; j--) {
//Try to check the collection:
alert(a_parents[j]);
// this is the place I have problem
this.toggle(a_parents[j]);
}
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Tree Menu
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
   
Tigra Tree Menu PRO
Product Demonstrations Live Demos
Multiple Trees
Frames Targeting
Icons and Styles Overloading
Event Handling
Performance Test
Version 1.2 features
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


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