JavaScript::DebugConsole

JavaScript::DebugConsole is a Perl extension to generate JavaScript popups with custom text and typical web development useful i
Download

JavaScript::DebugConsole Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Enrico Sorcinelli
  • Publisher web site:
  • http://search.cpan.org/~ferreira/POD2-Base-0.043/lib/POD2/Base.pod

JavaScript::DebugConsole Tags


JavaScript::DebugConsole Description

JavaScript::DebugConsole is a Perl extension to generate JavaScript popups with custom text and typical web development useful i JavaScript::DebugConsole is a Perl extension to generate JavaScript popups with custom text and typical web development useful informations.SYNOPSIS use JavaScript::DebugConsole; my $jdc = new JavaScript::DebugConsole; $jdc->add('Some', 'text'); print $jdc->debugConsole();I packaged some my old and simple functions inside a Perl module (I was tired to do cut&paste each time :-) ) to generate the necessary JavaScript code in order to open a popup window with custom text and typical web development useful infos (like form params, environment variables, HTTP headers and so on).CONSTRUCTOR * new( %args ) It's possible to create a new JavaScript::DebugConsole by invoking the new method. Parameters are passed as hash array: debug boolean Enable CGI form parameters and environment prints. Default value is 1.METHODS * add( 'Some', 'Text', ) Add text to be rendered with JavaScript writeln calls. * debugConsole(%args) Returns JavaScript code in order to open popup with custom text. Parameters are passed as hash array: content string Allows to set the content which will be render by Javascript document.writeln statement. The parameter isn't mandatory. It overrides text previously added with calls to add method. title string Popup title. Default vaule is POPUPConsole. auto_open boolean Appends to JavaScript generated code, the necessary call in order to open popup automatically when page is loaded. Default value is 1. form object 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. env hashref Hash reference to environment variables. Default is %ENV. id string Unique identifier in order to use it to name JavaScript function that creates popup. This allow more that one popup calls in same page without conflicts. Default is $$ (process PID). popup_options string Popup options. Default value is: height=250,width=450,scrollbars=1,resizable=1,dependent,screenX=250,screenY=200,top=200,left=250. See the JavaScript reference manual for more info about window.open method. pre boolean Print popup content inside HTML tag. Default values is 0. debug boolean Enable CGI form parameters and environment prints. Ovverride debug object property value only for method invocation. The method returns the generated JavaScript code. Requirements: · Perl


JavaScript::DebugConsole Related Software