dhtmltree单击以后跳转页面的问题,急~~~~~~~

我用dhtmltree+buffalo实现可拖动树的时候遇到一个问题,就是:
页面用frame分为左右两边,左边的显示树,右边的是点击树的子节点以后连接到的页面,问题就是,我不想再查询数据库了,怎么把url的属性给读出来,还是dhtmltree没这个功能??大家是怎么单击dhtmltree做跳转的啊??
代码:
<script language="JavaScript">
	var endPoint="<%=request.getContextPath()%>/bfapp";
	var buffalo = new Buffalo(endPoint,false);
		var tree = new Tree();
		   
		   function gotoEvent(node){
		   	if(node!=null){
		   		alert(node);//先这样写,打印一下.为什么这里只能得到id的值??
		   	}
		   }   
		   function star(){
			  var tree = new Tree();
		           tree=new dhtmlXTreeObject(document.getElementById('treeCase'),"100%","100%",0);
		
		 	  tree.setImagePath("../script/imgs/");
		
		            tree.setDragHandler();
		
		            tree.enableDragAndDrop(true) 
		
		            tree.setDragHandler(dragHandler);
			   
		           buffalo.remoteCall("bufSiteMenuService.getMenu",[], function(reply) {
			       var list =  reply.getResult();
			       if(list=="")return;
			       tree.insertNewItem(list[0].parentId,list[0].id,list[0].name);
			        tree.openAllItems(list[0].id);
			       for(i=1;i<list.length ;i++){
			         var node = list[i];
			          tree.insertNewItem(node.parentId,node.id,node.name,node.url);
			       }
			   });
		   	   
		   	  tree.setOnClickHandler(gotoEvent);    
		   }
</script>

你可能感兴趣的:(html)