[cgiapp] Header type

2006-11-09 Thread Bruce McKenzie
This question would actually sort of fit into the Ajax thread which is under the subject Test 2 - is this thing on :-) Anyway, should I be changing the header type when returning JSON or something other than HTML from CAP? Thx, Bruce -- http://www.2MinuteExplainer.com

Re: [cgiapp] Header type

2006-11-09 Thread Michael Peters
Bruce McKenzie wrote: This question would actually sort of fit into the Ajax thread which is under the subject Test 2 - is this thing on :-) Anyway, should I be changing the header type when returning JSON or something other than HTML from CAP? If you used CAP::JSON (another plug) you

Re: [cgiapp] Header type

2006-11-09 Thread Bruce McKenzie
Thanks Michael, I do use the JSON plug-in , but I've always done it this way: sub get_json {# my $perl_data_structure = shift; use JSON; # func interface imports objToJson return objToJson( $perl_data_structure ); } Michael Peters wrote: Bruce McKenzie wrote: This question