[TYPO3-dev] BE module with extJs but in 4.2.8
Steffen Kamper
info at sk-typo3.de
Thu Jul 30 10:34:35 CEST 2009
Hi,
Martin Kutschker schrieb:
> Mathias Schreiber [wmdb >] schrieb:
>> Sonja Scholz schrieb:
>>> baseParams:{ajaxID: "extjs_test_ajax::render_extJsAjaxOutput"},
>> feels somewhat odd to me.
>>
>> we do it like this:
>> url: '/typo3/ajax.php?ajaxID=wmdb_snow24wws',
>> and then just use those parameters we need.
>
> It should work the same, but I have experienced also problems. Adding
> the ajaxID to the URL work also better for me. No idea why.
>
it works, but depends on where you define. Don't add them to the proxy,
but add them to the store.
example:
TestDataStore = new Ext.data.JsonStore({
storeId: 'TestDataStore',
root: 'results',
totalProperty: 'total',
idProperty: 'uid',
fields: [
{name: 'uid', type: 'int', mapping: 'uid'},
{name: 'title', type: 'string', mapping: 'title'},
{name: 'crdate', type: 'date', mapping: 'crdate', dateFormat: 'c'},
{name: 'keywords', type: 'int', mapping: 'keywords'}
],
baseParams: {
ajaxID: 'extjs_test_ajax::render_extJsAjaxOutput'
},
proxy: new Ext.data.HttpProxy({
url: 'ajax.php',
}),
});
use method setBaseParam to override them, additional use params to add
the variable params.
See also in core list, JS error of recycler, where i used this while
refactoring the recycler store.
vg Steffen
More information about the TYPO3-dev
mailing list