[Catalyst] HTML::Prototype
Dan Boger
perl at peeron.com
Thu Nov 3 15:45:40 CET 2005
On Thu, Nov 03, 2005 at 06:36:09AM -0800, Will Smith wrote:
> Thanks for the good movie. i have the sample working fine. But
> when trying to put a column value to have it autocomplete, it
> does not quite right.
Some details on what actually happens might be useful.
> please show me where i am wrong:
>
> ---------------------
>
> sub suggest : Local {
> my ( $self, $c ) = @_;
> use mytest::M::CDBI::Cd;
> my @complete_me =
> mytest::M::CDBI::Cd->search_like(cdname=>$c->req->params->{%complete_me%});
> #my @suggestions;
> #push @suggestions, "$complete_me"; ----------- this is where I can
> append another column value?
> $c->res->output( $c->prototype->auto_complete_result(\@complete_me)
> );
> }
>
> --------------------
>
> do i need to work on the template?
Probably - you're passing it objects, and I think it's expecting
strings?
Dan
More information about the Catalyst
mailing list