[TYPO3-mvc] [INFO] How-to do AJAX with Extbase

Xavier Perseguers typo3 at perseguers.ch
Mon Aug 3 11:49:56 CEST 2009


Hi Bastian,

>> Hmm, looks a bit dirty having a genres.html file producing JSON.
>> In FLOW3 I'm using the concept of formats
> 
> I just said the same to Sebastian. We should definitely add the formats 
> concept to Extbase. But I'm not sure if it's gonna make it into the 
> first version (4.3) - we really need to concentrate on the legendary 
> "last 10%" of the existing code.

Thus, for the moment, you agree that what I did is a viable solution? I 
use this to prevent rendering of all other plugins and having to put an 
exit() statement at the end.

 > And file ajax.txt is:
 >
 > # Get your own typeNum with
 > # php -r 'echo time();'
 >
 > ajax = PAGE
 > ajax {
 >         # You don't need to change this typeNum
 >     typeNum = 1249058000
 >     config {
 >         disableAllHeaderCode = 1
 >         additionalHeaders = Content-type:application/json
 >         xhtml_cleaning = 0
 >         admPanel = 0
 >     }
 > }
 >
 > mvcextjssamples_simpleform < ajax
 > mvcextjssamples_simpleform {
 >     typeNum = 1249058991
 >     10 < tt_content.list.20.mvcextjssamples_simpleform
 > }

-- 
Xavier Perseguers
MVC ExtJS Samples Leader

http://forge.typo3.org/projects/show/extension-mvc_extjs_samples


More information about the TYPO3-project-typo3v4mvc mailing list