PDA

View Full Version : [CLOSED] V2.0 TabPanel Show Page aspx



Aurelio
Mar 05, 2012, 4:03 PM
Hi, in versione 1.2 this work ok



var addTab = function (tabPanel, id, url, title) {
var tab = TabPanelHome.getComponent(id);

if (!tab) {
tab = TabPanelHome.add({
id: id,
title: title,
closable: true,
autoLoad: {
showMask: true,
url: 'Utenti.aspx',
mode: "iframe",
maskMsg: "Caricamento " + title + "..."
}
});
}
TabPanelHome.setActiveTab(tab);
}


In 2.0 this not work, i don't show the page the tab is empty...



var addTab = function (tabPanel, id, url, title) {
var tab = App.TabPanelHome.getComponent(id);

if (!tab) {
tab = App.TabPanelHome.add({
id: id,
title: title,
closable: true,
loader: {
url: 'Utenti.aspx',
rendererType: "iframe",
loadMask: {
showMask: true,
msg: "Loading " + url + "..."
}
}
});
}
App.TabPanelHome.setActiveTab(tab);
}


If change the Url with: Http://www.ext.net
it's work OK.

Tanks
Aurelio

Daniil
Mar 05, 2012, 4:25 PM
Hi,

Please replace

rendererType: "iframe"
with

renderer: "frame"

Aurelio
Mar 05, 2012, 4:34 PM
Hi Daniil tanks you save my life... it's work ok..

Tanks

Aurelio