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

Gavin Henry ghenry at perl.me.uk
Fri Jan 20 22:10:37 CET 2006


<quote who="Duncan Ferguson">
> 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.

[% c.prototype.define_javascript_functions %]

Should put <script> tags for the included javascript in the <head></head>
of your templates.

If not, then that's why none of the Javascript objects can be created, so
no Autocomplete.

Put them in by hand just to make sure to test:

<script src="/scripts/prototype.js" type="text/javascript"></script>
<script src="/scripts/scriptaculous.js" type="text/javascript"></script>



>
>   Where do I go next to try and trace where my problem is?
>
>   TIA
>
>     Duncs
>
>
>
> ---------------------------------
> Win a BlackBerry device from O2 with Yahoo!. Enter
> now._______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>




More information about the Catalyst mailing list