I've used something like this to capture tree states (code snippet from
working code):
 
    var open:Object  = new Object();
    open = navTree.openItems;
    navTree.dataProvider = Application.application.dataObj.navXML;
    navTree.openItems = open;
    navTree.validateNow();
    navTree.selectedIndex = Number(newIndexSub);
 
 

Darin Kohles, Application Developer
[EMAIL PROTECTED]
Digital Positions, Inc.
2289 Peachtree Road NE
Atlanta, GA 30309

404-351-8878 support phone
404-351-2366 main phone
404-351-4055 fax
http://www.d-p.com/ 

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert
Capilli
Sent: Thursday, December 20, 2007 4:58 PM
To: [email protected]
Subject: [AFFUG Discuss] Tree Question using XML....



I have a tree with about 200 nodes in it. When I click on a parent node
that has children I make a call to the backend and retrieve the children
associated with the parent node. Upon returning from the backend I do a
[insertChildAfter] back into the XML structure. Once that happens I do
[myTree.expandChildrenOf()]. which expands the node that I selected..
Works perfectly... BUT, lets say I select a parent node that has
children further down the tree.. It retrieves the data, populates the
parent node I selected with children, expands everything and then
returns me to the top of the page... I don't want to return back to the
top. I wanna stay where I am.. Any idea how I can do that? Do you even
know what I'm talking about?


------------------------------------------------------------- 
To unsubscribe from this list, simply email the list with unsubscribe in
the subject line 

For more info, see http://www.affug.com 
Archive @ http://www.mail-archive.com/discussion%40affug.com/ 
List hosted by FusionLink <http://www.fusionlink.com>  
------------------------------------------------------------- 
------------------------------------------------------------- 
To unsubscribe from this list, simply email the list with unsubscribe in
the subject line 

For more info, see http://www.affug.com 
Archive @ http://www.mail-archive.com/discussion%40affug.com/ 
List hosted by FusionLink <http://www.fusionlink.com>  
------------------------------------------------------------- 



-------------------------------------------------------------

To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line



For more info, see http://www.affug.com

Archive @ http://www.mail-archive.com/discussion%40affug.com/

List hosted by http://www.fusionlink.com

-------------------------------------------------------------

Reply via email to