I actually found out what was happening. I assigned the selectedNode to two
different local variables, then delete the child nodes from one of them
thinking that it would be independent from the other one. This was actually
not true since although I assigned the node to two different variables both
of them point to the same object in memory. I figured out how to use the
same variable without deleting the child nodes and it is working now.
Example:
var nodeA = myNode.getTreeNodeAt( location);
var nodeB= myNode.getTreeNodeAt( location);
for ( nodeA lenght)
delete child Nodes < ----- This also changes nodeB, which is the one
I was using for my AddTreeNode
"Matt Chotin" To: [email protected]
<[EMAIL PROTECTED]> cc:
Sent by: Subject: RE: [flexcoders]
AddTreeNode sometimes does not add but instead replaces the
[email protected] top node.
11/16/2005 02:01 AM
Please respond to
flexcoders
Not that I can see from your description so you might need to give us more
codeā¦
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, November 15, 2005 11:25 AM
To: [email protected]
Subject: [flexcoders] AddTreeNode sometimes does not add but instead
replaces the top node.
I created a Tree using something like treeDP= new TreeNode(), and adding
branches and items. I have some functionality that inserts new nodes to an
existent branch. Sometimes, the AddTreeNode works fine and sometimes it
doesn't add a node but instead replaces the top one. I am using this
syntax.
node.AddTreeNode(object)
Is there anything that I am missing?
---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure. If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited. If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/