This question has been asked before.

Low-tech, and most compatible:
------------------------------

$| = 1; # turn on autoflush

print 'Please Wait';

while (executing_long_action) {
  print '.';
}

print 'Done!';

Nicer, but you need IE4+:
-------------------------

html:
<table border="0" cellspacing="0" cellpadding="0" width="50%">
  <tr>
    <td bgcolor="blue" id="progress">&nbsp</td>
    <td></td>
  </tr>
</table>

script:

$| = 1; # turn on autoflush

while (executing_long_action) {

  $percent = some_percent_calcuation;

  if ($percent != $last_percent) {

    print <<EOT;
<script language="javascript">
<!--
document.all('progress').width = "$percent%";
//-->
</script>
EOT

  }

  $last_percent = $percent;

}

You might also be able to do something with server push, but I don't have
any examples of that.

Peter Guzis
Web Administrator, Sr.
ENCAD, Inc.
email: [EMAIL PROTECTED]
www.encad.com 

-----Original Message-----
From: Byron Wise [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 08, 2001 2:53 PM
To: Perl-Win32-Users
Subject: ProgressBar via webpage?


Has anyone successfully created a Progress Bar for a
web page.  I'm beginning to think this is imposable.

Any one with some "know how" I'd sure appreciate
hearing from you.

many thanks,
byron

__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just
$8.95/month.
http://geocities.yahoo.com/ps/info1
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

Reply via email to