With JQuery you can request Marc's controller's route. That should do the
trick.

2011/4/14 Marc MacLeod <marbe...@gmail.com>

> In your controller:
>
>    public function fooAction()
>    {
>        // Is this an ajax request?
>        if ($this->container->get('request')->isXmlHttpRequest())
>        {
>            // do stuff and return ajax content
>        }
>
>        // return normal response
>     }
>
> On Apr 13, 5:16 am, symfonyMan <ezziani.cha...@gmail.com> wrote:
> > hello,
> >
> > could somebody show me an example using ajax in symfony 2 ??
> >
> > thanks
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to