In order to install and use this package you will need Perl version 5.005 or higher.
Installation as usual:
% perl Makefile.PL % make % make test % su Password: ******* % make install
No thirdy-part modules are required.
It's possible to create a new
new method. Parameters are passed as hash array:
Enable CGI form parameters and environment prints. Default value is 1.
document.writeln statement. The parameter isn't mandatory. It overrides text previously added with calls to
Popup title. Default vaule is POPUPConsole.
formobject or hashref
Reference to the form data. This can either be a hash reference, or a CGI.pm-like object. In particular, the object must have a param() method that works like the one in CGI.pm does. CGI::Simple and Apache::Request objects are known to work.
Hash reference to environment variables. Default is
$$ (process PID).
Popup options. Default value is:
Print popup content inside <PRE> </PRE> HTML tag. Default values is 0.
Enable CGI form parameters and environment prints. Ovverride
debug object property value only for method invocation.
During initial development, Sam Vilain asked me to include also a Template::Plugin::JS::DebugConsole plugin in order to use this class in Template Toolkit environment.
Since the wrapper wouldn't have added nothing of special, I used successfully
Template::Plugin::Class plugin, by avoiding to write e new one at the cost of one line only of additional code:
Following code use CGI plugin in order to print also CGI form params:
Patches are welcome and I'll update the module if any problems will be found.
Enrico Sorcinelli, <enrico at sorcinelli.it>
Copyright (C) 2004 by Enrico Sorcinelli
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or, at your option, any later version of Perl 5 you may have available.