S
steven shingler
Hi all
I've a treeview made up of images in a directory structure
When the image name is clicked on in the tree, i'd like to be able to
popup the image in a new window
so far I've got a javascript function to handle my SelectedIndexChange
event:
function returnSelectedIndexCh(){
var str = "";
var index = document.forms(0).all("TreeView1").selectedNodeIndex;
var currentNode = document.forms(0).all("TreeView1").getTreeNode(index);
strLoc += currentNode.getAttribute("Text");
alert(str);
}
this gives me the name of the image, but I need the parent information
too, so I can reference the directory of the image.
I was hoping for currentNode.getAttribute("Parent"), but that was just
one bridge too far.
A client-side solution would be brilliant, so as to avoid postback,
but if anyone can see a server-side solution that would be great too.
Many Thanks for taking a look!
Steven
I've a treeview made up of images in a directory structure
When the image name is clicked on in the tree, i'd like to be able to
popup the image in a new window
so far I've got a javascript function to handle my SelectedIndexChange
event:
function returnSelectedIndexCh(){
var str = "";
var index = document.forms(0).all("TreeView1").selectedNodeIndex;
var currentNode = document.forms(0).all("TreeView1").getTreeNode(index);
strLoc += currentNode.getAttribute("Text");
alert(str);
}
this gives me the name of the image, but I need the parent information
too, so I can reference the directory of the image.
I was hoping for currentNode.getAttribute("Parent"), but that was just
one bridge too far.
A client-side solution would be brilliant, so as to avoid postback,
but if anyone can see a server-side solution that would be great too.
Many Thanks for taking a look!
Steven