If you need, here is something I did with the tabPanel.
Code:
var selectedTab = 0;
Code:
new Ext.TabPanel({
border:false,
id:'tabpanel_nouvelles',
activeTab:0,
animScroll:true,
tabPosition:'top',
enableTabScroll: true,
items:[
{autoLoad:'getNouvelles.cfm?id=1',title:'1',id:'1',bodyStyle:'text-align:center;'},
{autoLoad:'getNouvelles.cfm?id=2',title:'2',id:'2',bodyStyle:'text-align:center;'},
{autoLoad:'getNouvelles.cfm?id=3',title:'3',id:'3',bodyStyle:'text-align:center;'},
{autoLoad:'getNouvelles.cfm?id=4',title:'4',id:'4',bodyStyle:'text-align:center;'},
{autoLoad:'getNouvelles.cfm?id=5',title:'5',id:'5',bodyStyle:'text-align:center;'}
]
,listeners: {
tabchange : function (panel, tab) {
selectedTab = panel.getActiveTab().id-1;
}
}
})
Then I add a task to make it switch automaticly
Code:
var task = {
run: function(){
if(selectedTab < 5){
selectedTab++;
Ext.getCmp('tabpanel_nouvelles').setActiveTab(selectedTab);
}else{
selectedTab = 0;
Ext.getCmp('tabpanel_nouvelles').setActiveTab(selectedTab);
}
},
interval: 5000
};
Ext.TaskMgr.start(task);