The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Egg::Plugin::Prototype - Plugin for Prototype

SYNOPSIS

  # 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' } ) %>

DESCRIPTION

Some stuff to make Prototype fun.

This plugin replaces Egg::Helper::Plugin::Prototype.

METHODS

prototype

Returns a ready to use HTML::Prototype object.

SEE ALSO

Egg::Release, Egg::Helper::Plugin::Prototype, Catalyst::Plugin::Prototype,

AUTHOR

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'.

LICENSE

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.