PDA

View Full Version : Onclick function for tab



joefox
27 Jan 2010, 5:32 PM
Is there a way to put a listener on a tab, so when its clicked it fires off a function?

Thanks in advance.

*EDIT
Here is what I have, i tried to put a handler on it, like i do my accoridion menu's but it dosent fire


title: 'Admin - Enter New Project',
iconCls:'usepolicy',
closable:false,
autoScroll:true,
handler: testingjoe,
defaults:{style:'padding:5px'},

I've also tried this, however when i run my webpage it fires off a few times.
I wanted to call another javascript function, when someone clicks on the tab.


title: 'Admin - Enter New Project',
iconCls:'usepolicy',
closable:false,
autoScroll:true,
listeners:{click: testingjoe()},
defaults:{style:'padding:5px'},

joefox
28 Jan 2010, 6:30 AM
anyone