[TYPO3-mvc] Recent change in method argument handling

Xavier Perseguers typo3 at perseguers.ch
Fri Aug 21 12:35:36 CEST 2009


Hi Ingmar,

>> ds.load({
>>     params: {
>>         lastName: search_view.findById("lastName").getValue(),
>>         firstName: search_view.findById("firstName").getValue(),
>>         street: search_view.findById("firstName").getValue(),
>>     },
>>     callback: Members.searchCompleted
>> });
>>
>> But I cannot replace lastName with tx_myext_search[lastname] as this
>> later is not a valid name for an object property...
> 
> What about putting the name of the object property in quotes? I think
> you can use anything you like then.
> 
> E.g.:
> ds.load({
>     params: {
>         'tx_myext_search[lastName]': ...,
>         'tx_myext_search[firstName]': ...,
>         'tx_myext_search[street]': ...,
>     },
>     callback: Members.searchCompleted
> });

hey, it works! Thanks for the hint.

> ...although that arguably doesn't look as nice anymore.

That's another story... ;-)

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en

One contribution a day keeps the fork away


More information about the TYPO3-project-typo3v4mvc mailing list