[cgiapp] Turning off Template output for AJAX

Michael Peters mpeters at plusthree.com
Thu Jan 29 10:38:30 EST 2009


kropotkin wrote:

> I see - yes; I found the place in postrun where we are loading the layout
> template and I just turn it off. I suppose you could use a template for AJAX
> but since the body is no more than the AJAX response text I'm not sure I can
> see the point

It depends on how complicated the output of the AJAX response is. Some are very small HTML snippets, 
but others are more complicated (lots of tables or forms, etc). So a template is very appropriate.

-- 
Michael Peters
Plus Three, LP



More information about the cgiapp mailing list