On Wednesday 13 December 2006 11:30, Marc Logghe wrote:
> > -----Original Message-----
> Yeah, sure. But in that way you switch off wrapping in *every* request.
> I would like to achieve that the default behaviour is wrapping (e.g.
> inherit from autohandler) but *not* in the case of an Ajax request
> (don't know what is The Best Way To Do(tm) that, simple 'nowrap=1'
> option in url or some advanced accept header checking ?)

Make 2 request comps: one is the full-blown page (your_order.html) which 
contains your list, and the other it the ajax-delivery boy page (order.ajax) 
which is requested by Ajax from the client. Both of them will call your 
component (order_items.mas), but order.ajax will have inherit=>undef 
and 'your_order.html' will not have it.
 
I think it makes sense also that the browser requests an HTML page, and the 
JavaScript glue requests another document, even though on the server-side 
they will share a lot.

--paf
-- 
--paf

-------------------------------------------------------------------------
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