[TYPO3-mvc] how to call a controller/action through jquery requestin extbase

Daniel Dimitrov danielsd_bg at yahoo.fr
Thu Sep 2 15:30:02 CEST 2010


Hey Desh,
search the list for ajax calls - and you will find what you want.
What I did was - configuring a special pageType for the ajax call and then 
just calling my extension with this pageType.


"Desh Naik" <desh.naik at lelesys.com> wrote in message 
news:mailman.462.1283431689.612.typo3-project-typo3v4mvc at lists.typo3.org...
> Hi guys
>
> I have started developing extension in extbase , and i liked the way it 
> works ,
> but while developing the extension i had a problem . the problem is as 
> follow
>
> I want to show a list of student in a pop up through jquery ajax response 
> .
> can any body tell me how can i call the controller/action from jquery ajax 
> and get a json response in extbase
>
> My controller is as follow
>
> class Tx_Student_Controller_IndexController extends 
> Tx_Extbase_MVC_Controller_ActionController {
>
>         public function listAction(){
>                    $list = $this->studentRepository->findAll();
>         }
> }
>
> can anybody help me in sending a json_response from listAction
> or is there any better way of doing it .
>
> Thanks

Regards,
Daniel 



More information about the TYPO3-project-typo3v4mvc mailing list