CGI::ProgressBar

CGI.pm sub-class with a progress bar object
Download

CGI::ProgressBar Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Lee Goddard
  • Publisher web site:
  • http://search.cpan.org/~lgoddard/

CGI::ProgressBar Tags


CGI::ProgressBar Description

CGI.pm sub-class with a progress bar object CGI::ProgressBar is a Perl module that provides a progress bar for web browsers, to keep end-users occupied when otherwise nothing would appear to be happening.It aims to require that the recipient client have a minimum of JavaScript 1.0, HTML 4.0, ancd CSS/1, but this has yet to be tested.All feedback would be most welcome. Address at the end of the POD.SYNOPSIS use strict; use warnings; use CGI::ProgressBar qw/:standard/; $| = 1; # Do not buffer output print header, start_html( -title=>'A Simple Example', -style=>{ -src => '', # You can override the bar style here -code => '', # or inline, here. } ), h1('A Simple Example'), p('This example will update a JS/CSS progress bar.'), progress_bar( -from=>1, -to=>100 ); # We're set to go. for (1..10){ print update_progress_bar; # Simulate being busy: sleep 1; } # Now we're done, get rid of the bar: print hide_progress_bar; print p('All done.'); print end_html; exit; Requirements: · Perl


CGI::ProgressBar Related Software