extjs ¿Cómo controlar la pestaña activa del panel de pestañas en b.jsp anidado para seleccionar 0 o 1, 2 o 3 haciendo clic en el árbol en a.jsp?
lt;headgt;
lt;meta?gt;lt;/iframegt;'})?],
¿cerrable?:? verdadero,
oyentes?:?{
antes de cerrar?:?function(p)?{
p.setVisible(false);
},
antes de destruir?:?función()?{
retorno?false;
}
}
});
tabPanel.add(tb);
tabPanel.setActiveTab(tb);
}
}
var?tabPanel?=?new?Ext.TabPanel(
{
región?:?"centro",
resizeTabs?:?true,
items?:?[]
})
var?emPanel?=?new?Ext.Panel(?{
¿ancho?: ?windowWidth?-?15,
alto?: ?windowHeight?-?60,
diseño?: ?"border", p>
p>
borde?: ?verdadero,
elementos?: ?[?tabPanel, ?árbol?]
}
var?windowWidth ?=?window.screen.availWidth;
var?style?=?'margin-top: 150px; margin-left: 150px;';
var ?el?=? Ext.get('auto-center').applyStyles(estilo);
emPanel.render(el);
});
lt;/ scriptgt;
lt;/headgt;
lt;bodygt;
lt;div?id='auto-center'gt; lt;/divgt;
lt;/bodygt;
lt;/htmlgt;
Lo que se le envía es una página html y. pégalo en txt y luego guárdalo como test.html.
Entonces sólo necesitas cambiar el paquete principal extjs y css a la ruta de tu paquete, que es extjs3.0.
O simplemente puedes colocarlo directamente en el mismo directorio que la carpeta ext.
O pegas directamente el código js html: 'lt; iframe scrolling="auto" frameborder="0" width="100" height="100" src=b.jspgt;lt;/ iframegt ;'Simplemente cambie esta posición a su b.jsp