How To Auto Reload Tab Panel Content?
Guys, can you tell me how to do auto reload tab panel content? For example:
Code:
var contentPanel = new Ext.TabPanel({
region:'center',
deferredRender:false,
activeTab:0,
enableTabScroll:true,
items:[{
autoLoad: {url: 'doMenuScreenMonitoring.php', scope: this},
title: 'Screen Monitoring',
closable:false,
autoScroll:true
}]
});
I want to reload the tab "Screen Monitoring" so it will reload in certain seconds (ie: every 5 seconds it will reload the tab content) without refreshing the whole page.
Thank you in advance for any body can help me by sharing the solution to me.:)
Confused of How To Use The getUpdater and startAutoRefresh
Hi Animal,
Thanks for you reply. By the way, can you explicitly tell me where to insert the code that you mean (getUpdater and startAutoRefresh)? Because I tried this and it was Javascript error:
Code:
var contentPanel = new Ext.TabPanel({
region:'center',
deferredRender:false,
activeTab:0,
enableTabScroll:true,
items:[{
autoLoad: {url: 'doMenuScreenMonitoring.php', scope: this},
title: 'Screen Monitoring',
closable:false,
autoScroll:true
}]
});
contentPanel.getUpdater().startAutoRefresh(3);
The TabPanel which I want to use is exactly like what I mentioned above. And for your information the code above inserted in the body of Ext.onReady();
Please show me the exact code where I need to insert the getUpdater and startAutoRefresh.
Thanks again for your kindness help. :)