[TYPO3-dev] Loading a tap panel's content using ExtDirect in the frontend
François Suter
fsu-lists at cobweb.ch
Fri Aug 5 11:11:13 CEST 2011
Hi all,
I'm writing an ExtJS application in the TYPO3 frontend. In particular, I
have a TabPanel where the content of each tab should be loaded via AJAX.
Thus I'm trying to use ExtDirect for this, but I can't figure out what
to put in my JavaScript to trigger an ExtDirect call.
See the sample code below. For the first tab, I just hard-coded some
content to make a try. For the second tab, what should I put (instead of
the question mark) to trigger a call to some ExtDirect method?
Ext.onReady(function() {
var tabs = new Ext.TabPanel({
renderTo: 'tx_myext_statsdisplay',
id: 'tx_myext_stats_tabs',
activeTab: 0,
overCls: 'tab-hover',
deferredRender: false,
items: [{
title: 'Tab 1',
html: 'Hello'
}, {
title: 'Tab 2',
?
}
]
});
});
Thanks in advance for the help.
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-dev
mailing list