Hi Marc,

Have you tried:

    $m->clear_buffer();
    _your_code();
    $m->abort();

Alfie

On 13/12/2006, at 7:54 PM, Marc Logghe wrote:

Hi all,
Is there a way to switch off content wrapping at runtime ? Suppose you have an component that produces a unordered list. In a 'normal' request the content is wrapped in the wrapping chain so that a full blown html page is returned. However, in a Ajax request it is sufficient to return the <ul> only, no wrapping wanted. How can one achieve that (reusing the existing component, I mean) ? I tried by passing a sub to the inherit flag but that did not work out. I was close when conditionally flushing the buffer. Close, but no cigar.
Any ideas ?
Cheers,
Marc
---------------------------------------------------------------------- ---
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php? page=join.php&p=sourceforge&CID=DEVDEV________________________________ _______________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to