What I often do (which isn't to say it's the best solution) if I need to
programmatically disable inheritance is to do something like this:
% $m->clear_buffer if $skip_autohandler;
% $m->call_next;
% $m->abort if $skip_autohandler;
In the autohandler where $skip_autohandler is an argument that you pass to
your sub-requests such as "?xml=1" or "?json=1". I'm certain there are
several other probably better ways to accomplish this however.
On Wed, Oct 1, 2008 at 2:18 PM, Jérôme Etévé <[EMAIL PROTECTED]> wrote:
> Hi,
> if you dont want your ajax component to inherit from the autohandler,
> you can put:
>
> <%flags>
> inherit => another_component ( or undef )
> </%flags>
>
> at the top of it.
>
> Cheers.
>
> J
>
>
>
> On Wed, Oct 1, 2008 at 7:12 PM, kropotkin <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi
> >
> > I want to use mason to serve my AJAX request. The problem is I don't want
> my
> > autohandler to be called for AJAX requests. I could put my AJAX component
> in
> > a top level directory and all the non AJAX components in sub-direcories;
> but
> > I don't particularily want to organise my directories this way.
> >
> > Is there any way to stop the autohandler being invoked for a particular
> > component, or, if not, to abort it once it has started?
> >
> > with thanks
> >
> > Justin
> > --
> > View this message in context:
> http://www.nabble.com/Mason-and-AJAX-problem-tp19766183p19766183.html
> > Sent from the Perl Mason - Users mailing list archive at Nabble.com.
> >
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Mason-users mailing list
> > Mason-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mason-users
> >
>
>
>
> --
> Jerome Eteve.
>
> Chat with me live at http://www.eteve.net
>
> [EMAIL PROTECTED]
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users