节点的唯一标识是:ID,不是文本,不能靠文本来定位节点,最多是遍历树找到所有的符合节点.再决定选择哪个2.你已经得到了一个树的实例,如:tree,
用top.treeframe.tree可以得到树的引用,为所欲为啦

解决方案 »

  1.   

    请问高手,我在下面的OrgMainBoardMain中能用JAVASCRIPT操纵OrgMainBoardLeft页面的树的形状么?JAVASCRIPT:
    function doOrgGuardSave()
    {
    thisForm.action="OrgGuardSave.jspa";
    thisForm.method="post";
                       parent.document.OrgMainBoardLeft.location.reload();
                       parent.document.OrgMainBoardLeft.top.treeframe.tree.focus("73");     
    thisForm.submit();
    }
    页面代码:
      <tr>
        <td align="center" valign="top">
    <iframe id="OrgMainBoardLeft" name="OrgMainBoardLeft" src="${base}/org/OrgGuardLeft.jspa" frameborder="0" marginheight="0" marginwidth="0" width="100%" HEIGHT="600" scrolling="auto"></iframe>
    </td>
    <td align="center" valign="top" width="90%">
    <iframe id="OrgMainBoard" name="OrgMainBoard" src="OrgMainBoardMain" frameborder="0" marginheight="0" marginwidth="0" width="100%" HEIGHT="600" scrolling="auto"></iframe>
    </td>
      </tr>