HTML::Prototype::Useful - Some useful additions for the Prototype library.
use HTML::Prototype::Useful; $protype=HTML::Prototype::Useful->new(); print $prototype->call_remote( ... ) print $prototype->lazy_observe_field( .. )
this adds some more useful features for AJAX development based on the Prototype library, as L<HTML::Prototype> is a straight port of the ruby implementation.
Returns the javascript required for HTML::Prototype as well as this module.
Generate a remote function that you can stuff into your js somewhere.
like HTML::Prototype's observe_field method, but only detect changes after a user has stopped typing for frequency.
frequency
Observes the element with the DOM ID specified by $id and makes an Ajax when you hover the mouse over it for at least <frequency> seconds.
Takes the same arguments as observe_field.
HTML::Prototype, Catalyst::Plugin::Prototype, Catalyst. http://prototype.conio.net/
mramberg@cpan.org
Sebastian Riedel for HTML::Prototype
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
To install HTML::Prototype::Useful, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Prototype::Useful
CPAN shell
perl -MCPAN -e shell install HTML::Prototype::Useful
For more information on module installation, please visit the detailed CPAN module installation guide.