本帖最后由 zzh200411 于 2010-08-24 15:47:03 编辑

解决方案 »

  1.   

    下边是给出的一个例子!添加一个listeners的监听事件..mainPanel则是你所说的右边的区域..
    var yinzhangman = new Ext.tree.TreePanel({
    border : false,
    root : root,
    listeners : {
    click : function(node,e){
    if(!node.isLeaf()){
    return ;
    }
    mainPanel.load({
    url:node.attributes.url,
    callback : function(){
    mainPanel.setTitle(node.text);
    },
    scripts: true
    });
    }
    }
    });
      

  2.   

    //在点击左边链接的时候触发事件,加载panel
    _top_panel.load({
    url : "./hecs/resource/resourceQuery/seachpanel.jsp",
    scripts : true,
    text : "正在加载数据,请稍侯……"
    });