Hi Ben

Thanks. I was thinking of something along those lines (though I didn't think
about clearing the buffer), but I'd be concerned about the http header
created by the abort method?

In fact Jérôme's approach seems to do it 

all useful knowledge though

thanks all

Justin  




Ben. B. wrote:
> 
> 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
>> > [email protected]
>> > 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
>> [email protected]
>> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Mason-and-AJAX-problem-tp19766183p19768114.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
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to