no style attribute did not work..style attribute returns null
is there anyway i can get a left and top position of any particular treenode using javascript?
var selnode=TreeView1.getTreeNode(TreeView1.selectedNo deIndex);
alert(selnode.getAttribute("__Top"));
alert(selnode.getAttribute("__Left"));
something like that...but that doesn;t work...
i know about the mouse click position...
so it's not exactly the clicked node position it's rather the mouse click position..
say there is
Node 1(Expanded)
|___
|___
Node 2(CollapseD)
now when user clicks node2 i can get the position using window.event.clientX....but when node2 is expanded and node1 is collapsed...
so node 2 moves up
Node1
Node2
|__
|__
so node2 moves up...so the position i got using window.event.clientX is no more the position where node 2 is...
thank you.
i am trying using
TreeView1.getTreeNode(TreeView1.selectedNodeIndex) .getAttribute("offsetTop"); but tha actually yields 0;
(
http://www.mozilla.org/docs/dom/domref/dom_el_ref.html)