Nov 09, 2008, 3:59 PM
update existing tab
hi
I was wondering if we can suggest best way to do this. I am using following code
Say I have created some tabs and now for one tab I would like to update/refresh an existing tab. Should I add some code to the Javascript function below or is it something I should do in the .ashx file. Is it possible to update the tab or I should remove the tab and then add it again.
I was wondering if we can suggest best way to do this. I am using following code
Say I have created some tabs and now for one tab I would like to update/refresh an existing tab. Should I add some code to the Javascript function below or is it something I should do in the .ashx file. Is it possible to update the tab or I should remove the tab and then add it again.
var hlClick2 = function(href, id, curpanel) {
var tab = CenterPanel.getComponent(id);
if (tab)
{
CenterPanel.setActiveTab(tab);
} else {
Ext.Ajax.request({
url: 'URLLoader.ashx',
success: function(response) { eval(response.responseText); },
failure: function(response) {
Ext.Msg.alert('Failure', 'Can not load current tab:\n' + response.responseText);
},
params: { id: id, url: href, tabId: CenterPanel.id, currentpanel: curpanel }
});
}
}