clutter being returned when redirecting

2 views
Skip to first unread message

Pete Sisson

unread,
Aug 11, 2010, 12:08:20 PM8/11/10
to sfJqueryReloadedPlugin
Having used jq_submit_image_to_remote, the action in the request has
to forward to another action before content is returned.

When the content gets returned it has its own set of meta content
tags, title tags and style / js includes etc. Is there a way to stop
this?

Pete

Tom Boutell

unread,
Aug 11, 2010, 2:44:07 PM8/11/10
to sfjqueryrel...@googlegroups.com
Normally Symfony will be clever about this and not apply the layout to
AJAX requests. Maybe your forward() call messes that up.

The workaround is to call $this->setLayout(false); in the action
you're forwarding to, I believe.

--
Tom Boutell
P'unk Avenue
215 755 1330
punkave.com
window.punkave.com

Pete Sisson

unread,
Aug 11, 2010, 4:34:57 PM8/11/10
to sfJqueryReloadedPlugin
Thanks for replying Tom. Yeah, I tried the setLayout to false as
that's mentioned in the docs, but for what ever reason it doesn't seem
to make any difference.

I ended up re-organsing my code so it uses a component rather than
needing to bounce around actions. Still.... odd...

Pete

On Aug 11, 7:44 pm, Tom Boutell <t...@punkave.com> wrote:
> Normally Symfony will be clever about this and not apply the layout to
> AJAX requests. Maybe your forward() call messes that up.
>
> The workaround is to call $this->setLayout(false); in the action
> you're forwarding to, I believe.
>
Reply all
Reply to author
Forward
0 new messages