View Full Version : Scrolling Tabs Example

10 Jul 2009, 6:13 AM
Hey all,
How do I add onclick events when I click a tab in the scrolling tabs example? Basically this is what I'm trying to accomplish:

When a user clicks a tab, it sends an ajax request and fetches results and displays it in the div body. For this I need to send the ID of the tab that was clicked on. How do I assign my own IDs?
Im using the open-source version of the Ext JS library.

10 Jul 2009, 6:18 AM
Have you checked the API for the "Open source version" :))

10 Jul 2009, 6:18 AM
Ids can be assigned via panel config. Also see http://extjs.com/deploy/dev/docs/?class=Ext.TabPanel&member=tabchange

10 Jul 2009, 6:24 AM
why not just assign autoLoad for the panel? this is done in the examples if i recall correctly.

10 Jul 2009, 6:53 AM
Thanks for pointing me in the right direction.