Aug 15, 2010, 11:09 AM
How to get params when page load
Hello all,
I have a TabPanel and have addTab funtion to add a new tab. The addTab funtion is the below:
Thansks for any reply or give me any refference.
Huy
I have a TabPanel and have addTab funtion to add a new tab. The addTab funtion is the below:
var addTab = function(tabPanel, id, url, title, params) {
var tab = tabPanel.getComponent(id);
if (!tab) {
tab = tabPanel.add({
id: id,
title: title,
closable: true,
autoLoad: {
showMask: true,
url: url,
params: params,
mode: "iframe",
maskMsg: "Đang tải trang " + title.toUpperCase() + "..."
}
});
}
tabPanel.setActiveTab(tab);
}
and i using this code to load A.aspx page:addTab(tabPanelMain, 'idATab', 'A.aspx', 'Page A', {id: 1})
My problem is: i don't know to get the params value at when A.aspx loading.Thansks for any reply or give me any refference.
Huy