Subject: | Missing controls, dragdrop, and effects |
Date: | Mon, 20 Nov 2006 21:22:11 -0800 |
To: | bug-HTML-Prototype-Useful [...] rt.cpan.org |
From: | "Steven Kuo" <attn.steven.kuo [...] gmail.com> |
Using H::P::Useful with Catalyst, I find
that not all the Javascript from
HTML::Prototype is loaded with:
[% Catalyst.prototype.define_javascript_functions %]
I had to add a few new lines to the define_javascript_functions
subroutine in H::P::Useful in order to implement
an auto_complete field.
Changed from:
sub define_javascript_functions {
return <<"";
<script type="text/javascript">
<!--
$HTML::Prototype::prototype
$prototype_useful
//-->
</script>
To:
sub define_javascript_functions {
return <<"";
<script type="text/javascript">
<!--
$HTML::Prototype::prototype
$HTML::Prototype::controls
$HTML::Prototype::dragdrop
$HTML::Prototype::effects
$prototype_useful
//-->
</script>
--
Regards,
Steven