TreeView放在左边一帧,右边页面第一次加载时地址为左边TreeView的默认选择地址.如何实现?
怎么实现标题所述的效果,谢谢帮忙!
------解决方案--------------------树结点的可以获取结点的路径
------解决方案--------------------web?
<div id= "divMain " class= "Main ">
<div id= "divAreaLeft " class= "AreaLeft ">
<iframe id= "MainTreeContainer " frameborder= "0 " scrolling= "auto " marginheight= "0 " marginwidth= "0 " height= "100% " width= "100% " src= "../_TreeView.htm?RequestSetting=true&Page=ApproveItem_Info.aspx "> </iframe>
</div>
<div id= "divAreaRight " class= "AreaRight ">
<iframe frameborder= "0 " height= "100% " scrolling= "auto " id= "TargetFrame " name= "TargetFrame " marginheight= "0 " marginwidth= "0 " src= "ApproveItem_Info.aspx " width= "100% "> </iframe>
</div>
</div>
<script language= "javascript ">
/*
添加附加后缀
*/
function addLocationPostfix()
{
var parameters = getPageParameters();
var LinkApproveItemConfigID = getPageQueryValue( "LinkApproveItemConfigID " );
var mainFrame = window.frames[ "MainTreeContainer " ];
var targetFrame = window.frames[ "TargetFrame " ];
if( mainFrame == null | targetFrame == null )
return;
mainFrame.location = mainFrame.location + '?LinkApproveItemConfigID= ' + LinkApproveItemConfigID;
targetFrame.location = targetFrame.location + '?LinkApproveItemConfigID= ' + LinkApproveItemConfigID;
}
addLocationPostfix();
</script>
------解决方案--------------------即然你想获得默认的左侧树的选择节点的编码,那就从最外层页面传一个进来.如例子中的LinkApproveItemConfigID