Egg::Plugin::Prototype - Plugin for Prototype
# use it use Egg qw/ Prototype /; # ...add this to your mason template... <% $e->prototype->define_javascript_functions %> # ...and use the helper methods... <div id="view"></div> <textarea id="editor" cols="80" rows="24"></textarea> % my $uri = $e->config->{static_uri}. 'edit/'. $e->page_title; <% $e->prototype->observe_field( 'editor', $uri, { 'update' => 'view' } ) %>
Some stuff to make Prototype fun.
This plugin replaces Egg::Helper::Plugin::Prototype.
Returns a ready to use HTML::Prototype object.
Egg::Release, Egg::Helper::Plugin::Prototype, Catalyst::Plugin::Prototype,
This code is a transplant of 'Masatoshi Mizuno <lushe@cpan.org>' of the code of 'Catalyst::Plugin::Prototype'.
Therefore, the copyright of this code is assumed to be the one that belongs to 'Sebastian Riedel, sri@oook.de'.
sri@oook.de
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.