I've placed up at http://people.apache.org/~randyk/ a couple of modules that provide a mod_perl2 interface to two Ajax-related packages:- Apache2-Ajax-0.1.tar.gz: a mod_perl2 interface to CGI::Ajax, which provides a mechanism for using perl
code asynchronously from javascript-enhanced HTML pages. - Apache2-Autocomplete-0.1.tar.gz: a mod_perl2 interface to JavaScript::Autocomplete::Backend, which is a base class for implementing an autocomplete service for a form using the Google Suggest protocol. Both modules require a CGI.pm-compatible module to provide, in particular, param() and header() methods to, respectively, fetch parameters and to set the headers. If the memory requirements of CGI.pm are a concern in a mod_perl environment, you may want to try - CGI-Apache2-Ajax-0.1.tar.gz from the same location - this provides param() and header() methods via mod_perl2 and librapreq2.Apache2::Ajax and Apache2::Autocomplete will use CGI::Apache2::Ajax if available, and if not will use
CGI.pm (version 2.93 or greater). I'd be interested in any comments about these packages, including their names. CGI::Apache2::Ajax was tentatively chosen because, first of all, it onlyprovides CGI.pm-compatible methods that the above two Ajax-related applications need, and also, CGI::Ajax
expects the CGI object to satisfy ref($cgi) =~ /^CGI.*/ Note though that, due to the nature of the APR::* modules used, CGI::Apache2::Ajax can also be used in a CGI environment. Thanks. -- best regards, Randy Kobes
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.