Re: [Catalyst] RE: DBIC - JSON conversion for AJAX

2011-10-07 Thread Alexander Hartmaier
Catalyst::Controller::DBIC::API was written for exactly that use case. Cheers, Alex Am 2011-09-12 16:38, schrieb Roland Philibert: Thanks all for your suggestions so far. I was I guess on the right track with JSON:XS but I had also seen REST but so far I am still unsure as what the best way to

RE: [Catalyst] RE: DBIC - JSON conversion for AJAX

2011-09-14 Thread Roland Philibert
: Eden Cardim [mailto:edencar...@gmail.com] Sent: 12 September 2011 21:31 To: The elegant MVC web framework Subject: Re: [Catalyst] RE: DBIC - JSON conversion for AJAX Roland == Roland Philibert rphilib...@aptina.com writes: Roland Thanks all for your suggestions so far. I was I guess

RE: [Catalyst] RE: DBIC - JSON conversion for AJAX

2011-09-14 Thread Ian.Docherty
', }); $self-status_ok( $c, entity = \@arr ); } -Original Message- From: Roland Philibert [mailto:rphilib...@aptina.com] Sent: 14 September 2011 15:54 To: The elegant MVC web framework Subject: RE: [Catalyst] RE: DBIC - JSON conversion for AJAX

RE: [Catalyst] RE: DBIC - JSON conversion for AJAX

2011-09-14 Thread Roland Philibert
rest object was showing just the number of row retrieved ie: {rest:80} -Original Message- From: ian.doche...@nomura.com [mailto:ian.doche...@nomura.com] Sent: 14 September 2011 16:13 To: catalyst@lists.scsys.co.uk Subject: RE: [Catalyst] RE: DBIC - JSON conversion for AJAX search calls

Re: [Catalyst] RE: DBIC - JSON conversion for AJAX

2011-09-14 Thread Ronald J Kimball
On Wed, Sep 14, 2011 at 11:44 AM, Roland Philibert rphilib...@aptina.comwrote: I did try what you suggest as per: sub thing_GET { my ($self, $c) = @_; $self-status_ok( $c, entity = $rs = $c-model('DB::data)-search({},{result_class =

RE: [Catalyst] RE: DBIC - JSON conversion for AJAX

2011-09-14 Thread Ian.Docherty
: Roland Philibert [mailto:rphilib...@aptina.com] Sent: 14 September 2011 16:44 To: The elegant MVC web framework Subject: RE: [Catalyst] RE: DBIC - JSON conversion for AJAX I did try what you suggest as per: sub thing_GET { my ($self, $c) = @_; $self-status_ok

RE: [Catalyst] RE: DBIC - JSON conversion for AJAX

2011-09-14 Thread Roland Philibert
Thanks for the tip Ronald, works like nicely. Cheers, Roland From: Ronald J Kimball [mailto:rkimb...@pangeamedia.com] Sent: 14 September 2011 16:59 To: The elegant MVC web framework Subject: Re: [Catalyst] RE: DBIC - JSON conversion for AJAX On Wed, Sep 14, 2011 at 11:44

RE: [Catalyst] RE: DBIC - JSON conversion for AJAX

2011-09-14 Thread Roland Philibert
: Roland Philibert [mailto:rphilib...@aptina.com] Sent: 14 September 2011 16:44 To: The elegant MVC web framework Subject: RE: [Catalyst] RE: DBIC - JSON conversion for AJAX I did try what you suggest as per: sub thing_GET { my ($self, $c) = @_; $self-status_ok

RE: [Catalyst] RE: DBIC - JSON conversion for AJAX

2011-09-13 Thread Roland Philibert
: Eden Cardim [mailto:edencar...@gmail.com] Sent: 12 September 2011 21:31 To: The elegant MVC web framework Subject: Re: [Catalyst] RE: DBIC - JSON conversion for AJAX Roland == Roland Philibert rphilib...@aptina.com writes: Roland Thanks all for your suggestions so far. I was I guess

[Catalyst] RE: DBIC - JSON conversion for AJAX

2011-09-12 Thread Ian.Docherty
Roland I like to use Catalyst::Controller::REST which will do the decoding and encoding of JSON for you. The module has some good examples. I also like to 'decouple' the DBIC object from my view, so that I only pass in the values, not the object. my $object =

RE: [Catalyst] RE: DBIC - JSON conversion for AJAX

2011-09-12 Thread Roland Philibert
Thanks all for your suggestions so far. I was I guess on the right track with JSON:XS but I had also seen REST but so far I am still unsure as what the best way to go. Aptina (UK) Limited, Century Court, Millennium Way, Bracknell, Berkshire, RG12 2XT. Registered in England No. 06570543. This