EXT tabpanel 刷新

//左则菜单点击事件,重新刷新页面


tree.on('click', function(node, e){
if(node.isLeaf()){
e.stopEvent();
//var autoLoad = {url:node.attributes.href};
tabPanel.add({
title:node.attributes.text,
id: node.id,
closable:true,
minHeight:500,
autoScroll:false,
frame:true,
html:''
});
tabPanel.setActiveTab(node.id);
//点击左则菜单重新刷新页面
window.frames["iframe"+node.id].location.reload();
}
});

//Tabpanel上点击标签重新刷新页面

tree.on('click', function(node, e){
if(node.isLeaf()){
e.stopEvent();
//var autoLoad = {url:node.attributes.href};
tabPanel.add({
title:node.attributes.text,
id: node.id,
closable:true,
minHeight:500,
autoScroll:false,
frame:true,
html:'' ,
listeners:{
activate:function(tab){
window.frames["iframe"+tab.id].location.reload();
}
}
});
tabPanel.setActiveTab(node.id);
}
});

你可能感兴趣的:(Eclipse,EXT,Java,HTML)