若利用iframe,treeview中点击节点时如何显示其相关节点信息在textbox中
如题:
treeview控件显示在iframe中: <iframe id= "iframe1 " style= "WIDTH: 176px; HEIGHT: 288px " src= "formtreeview.aspx " runat= "server "> </iframe>
也就是在运行时,点击treeview中点击节点时显示其相关节点信息在textbox中
请各位帮一下忙,谢谢
------解决方案-------------------- <script>
var tree = TreeView1.getTreeNode(TreeView.selectedNodeIndex);
tree.onclick = function()
{
parent.document.all.txt.value = tree.getAttribute( "text ");
}
</script>
放到formtreeview.aspx页面body之后.