[Catalyst] Newbie Q: Catalyst::Plugin::Prototype

Brandon Black blblack at gmail.com
Fri Jan 20 21:21:08 CET 2006


On 1/20/06, Duncan Ferguson <duncan_j_ferguson at yahoo.co.uk> wrote:
> I am a bit stuck using the above module when trying to set up an
> autocomplete field, just the same as in the movie demo.
>
>  I have set everything up the same as the demo, but it seems the javascript
> isnt being included in the web page generated (looking at the page source,
> all I see are the div elements; all javascripty bits translate to blank
> lines)
>
>  I have spent today reinstalling all Catalyst modules and dependancies (just
> to ensure there are no conflicts) downloaded from CPAN yesterday and today,
> but still not got an idea what is happening.
>
>  Where do I go next to try and trace where my problem is?
>
>  TIA
>

Without any code it's hard to say.  Are any Catalyst variables working
in your templates at all? (like [% c.req.base %]) and whatnot?  I once
made the stupid thinko in my templates of doing an array loop as [%
FOREACH c = cats %], which of course blew away my Catalyst $c variable
in the template, and produced the results you describe (no Prototype
javascript from [% c.prototype... %], etc).  It took me a while to
realize what was going on with that one.

I'm using autocomplete very much like what's shown in the movie (the
transcript at http://dev.catalyst.perl.org/wiki/MoviesAutoCompletionDemoTranscript
), and it works fine for me in general.

-- Brandon



More information about the Catalyst mailing list