1) Select a node in the tree, it gets selected.
2) Select a link in another frame/iframe, the node gets blurred
3) Select another node in the tree, it gets selected and the blurred node stays blurred.
April 17, 2003Subject:
Re:Xtree: Multiple blur and focus occurs
I notice this bug, which I guess is caused by executed xtree methods who execute to fast after each other. For example this happens when I do something like this.
I select a node to cut and store it in a variable:
oCuttedNode = tree.getSelected();
oCuttedNodeParent = tree.getSelected().parentNode;
Now I paste the node into another node:
I select the node to paste into and store this into a variable:
oPastingNode = tree.getSelected();
I remove the cutted node:
Now the parent of the cuttedNode gets focus, I want the focus to be on the node to paste into and not on the CuttedNodeParent.
Executing the serverside code to do a copy paste
Reload the oPastingNode which just got an extra child:
However this all happens so fast, the tree gets confused with blur and focus, which results in multiple nodes being selected, focussed and blurred.
How can I prevent this from happening?