
Access the node that was clicked on with in a TreeView control
Well I found my answer. With VBScript you just and an argument to the
supplied template:
TreeView_NodeClick(node)
With JavaScript there are two script blocks that need to be modified. The
first unamed script block will look something like:
TreeView_NodeClick();
I just changed this to
TreeView_NodeClick(arguments[0]);
Then I add the argument to the called function like:
TreeView_NodeClick(node){ alert(node.text); }
Hopefully I did not break any rules, but this seems to work, which is all
that is important for now.
Kevin
Quote:
> I have an application that I have inserted a TreeView controll into the
> client side. Using VisualInterdev I indicate that I want to handle the
> 'NodeClick' event. This generates a VBScript template that does not
include
> an argument.
> My question is how to I access the node that was clicked on? When I click
on
> a node the function gets called, I just don't know what to do from there.
> Thank you.
> Kevin Burton