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: getSelectedItems()
syfodyas
Member

Posts: 11
Registered: 11/16/2005
Member Is Offline
posted on 11/28/2005 at 03:03 PM Reply With Quote
getSelectedItems()


I've purchased the PRO versino and trying to get all the selected items out of my tree.

I preselect some items by doing this:
['$output',null,{'sl':1, 'hs':'addToSelection', 'tt':'$output'}

addToSelection does nothing in this example

then my function has to return the selected items:

function getSelectedItems() {
var a_found = TREES['tree'].find_item_by_state('2');
for (var i=0; i<a_found.length; i++){
alert("selected item: "+a_found.a_config[0]);
}
alert(" "+i+" items found");
}

when i use find_items_by_state('3') it returns the caption properly, but there seems to be a problem with the selected itesm. Am i doing something wrong??
View User's Profile View All Posts By User U2U Member
syfodyas
Member

Posts: 11
Registered: 11/16/2005
Member Is Offline
posted on 11/28/2005 at 07:59 PM Reply With Quote

Never mind, i already fixed it

var found = TREES['tree'].find_item_by_state('4');
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
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