[cgiapp] Turning off Template output for AJAX

kropotkin enquiries at mms-oxford.com
Thu Jan 29 11:06:13 EST 2009


lol

Alright. I take the point that it is consistent design wise - but I am
outputting JSON so a template isn't really necessary in this case.

But does the C:A JSON plugin require me to be using a template?

Thanks

Kropotkin



P Kishor-3 wrote:
> 
> On 1/29/09, kropotkin <enquiries at mms-oxford.com> wrote:
>>
>>  Hi
>>
>>  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
> 
> timtowdi, but, imo, using a template for ajax fits in very well with
> the rest of the design and philosophy. An ajax call is like any other
> call to the server, just done different on the client side. For the
> server, it is like any other call. Using a template would allow you to
> format the data the way you want it, or send it so it can be parsed by
> client side functions properly and easily.
> 
>>
>>  Thanks for the helpful response
>>
>>  Kroptokin
>>
>>
>>
>>
>>  Michael Peters wrote:
>>  >
>>  > kropotkin wrote:
>>  >
>>  >> How do I stop C:A outputting a template from a run-mode? This is for
>> a
>>  >> method which serves an AJAX call.
>>  >
>>  > C::A doesn't output a template by default. You must have some other
>> plugin
>>  > loaded that does that.
>>  > Besides, what does an AJAX call have to do with not using a template?
>>  >
>>  > --
>>  > Michael Peters
>>  > Plus Three, LP
>>  >
>>  >
>>  > #####  CGI::Application community mailing list  ################
>>  > ##                                                            ##
>>  > ##  To unsubscribe, or change your message delivery options,  ##
>>  > ##  visit:  http://lists.openlib.org/mailman/listinfo/cgiapp    ##
>>  > ##                                                            ##
>>  > ##  Web archive:   http://lists.openlib.org/pipermail/cgiapp/   ##
>>  > ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
>>  > ##                                                            ##
>>  > ################################################################
>>  >
>>  >
>>  >
>>
>>
>> --
>>  View this message in context:
>> http://www.nabble.com/Turning-off-Template-output-for-AJAX-tp21726620p21728335.html
>>
>> Sent from the cgiapp at lists.openlib.org mailing list archive at
>> Nabble.com.
>>
>>
>>
>> #####  CGI::Application community mailing list  ################
>>  ##                                                            ##
>>  ##  To unsubscribe, or change your message delivery options,  ##
>>  ##  visit:  http://lists.openlib.org/mailman/listinfo/cgiapp    ##
>>  ##                                                            ##
>>  ##  Web archive:   http://lists.openlib.org/pipermail/cgiapp/   ##
>>  ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
>>  ##                                                            ##
>>  ################################################################
>>
>>
> 
> 
> -- 
> Puneet Kishor http://www.punkish.org/
> Nelson Institute for Environmental Studies http://www.nelson.wisc.edu/
> Open Source Geospatial Foundation (OSGeo) http://www.osgeo.org/
> 
> #####  CGI::Application community mailing list  ################
> ##                                                            ##
> ##  To unsubscribe, or change your message delivery options,  ##
> ##  visit:  http://lists.openlib.org/mailman/listinfo/cgiapp    ##
> ##                                                            ##
> ##  Web archive:   http://lists.openlib.org/pipermail/cgiapp/   ##
> ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
> ##                                                            ##
> ################################################################
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Turning-off-Template-output-for-AJAX-tp21726620p21729857.html
Sent from the cgiapp at lists.openlib.org mailing list archive at Nabble.com.



More information about the cgiapp mailing list