Apache2-Ajax
view release on metacpan or search on metacpan
This module is a mod_perl2 interface to CGI::Ajax,
which provides a mechanism for using perl code
asynchronously from javascript-enhanced HTML pages.
See the documentation for Apache2::Ajax for details.
As well as mod_perl2, the package requires CGI::Ajax,
as well as a CGI.pm-compatible
CGI module for supplying param() and header() methods.
If available, CGI::Apache2::Wrapper will be used,
which is a minimal module that uses methods of mod_perl2
and Apache2::Request to provide these methods; if this
is not available, CGI.pm (version 2.93 or greater) will be used.
lib/Apache2/Ajax.pm view on Meta::CPAN
$r->print($ajax->build_html());
return Apache2::Const::OK;
}
1;
##################################################
=head1 DESCRIPTION
This module is a mod_perl2 interface to L<CGI::Ajax>,
which provides a mechanism for using perl code
asynchronously from javascript-enhanced HTML pages.
As well as L<mod_perl2>,
this package requires L<CGI::Ajax>, as well as a CGI.pm-compatible
CGI module for supplying the I<param()> and I<header()> methods.
If available, L<CGI::Apache2::Wrapper> will be used,
which is a minimal module that uses methods of L<mod_perl2>
and L<Apache2::Request> to provide these methods; if this
is not available, L<CGI> (version 2.93 or greater) will be used.
Setting things up can be illustrated by the following
( run in 0.269 second using v1.01-cache-2.11-cpan-0d8aa00de5b )