- JScript code
var TreeView; function this_ondocumentready() { TreeView = element.all(id + "_TreeFilter"); } function SyncTree() { [color=#FF0000]var treeAnd = TreeView .getTreeNode("0");[/color] treeAnd.setAttribute("Root", "true"); treeAnd.setAttribute("BoolType", "And"); var xFilter = xmlTree.selectSingleNode("//Filter"); if( null == xFilter ) { xFilter = xmlTree.createElement("Filter"); if( xmlTree.hasChildNodes ) xmlTree.firstChild.appendChild(xFilter); else xmlTree.appendChild(xFilter); } var xAnd = xmlTree.selectSingleNode("//Filter/And"); if( null == xAnd ) { xAnd = xmlTree.createElement("And"); xFilter.appendChild(xAnd); } SyncNode( xAnd, treeAnd); TreeView.selectedNodeIndex = txtSelectedNode.value; }
各位前辈,小弟在做一个二次开发项目,遇到这个问题,很纠结!
TreeView 应该是个全局的吧,在好多方法中都有用到。也可以获取到这个控件的ID。
var treeAnd = TreeView .getTreeNode("0");这边报错object doesn't support this property or methods.
小弟新手,分不多,希望各位前辈指教!
------解决方案--------------------
网站根目录下需要有 webctrl_client 这个文件夹 有树运行需要的htc文件等