Javascript+Perl CGI: Reporting upload status

J

J Krugman

I am writing a CGI script (using Perl and CGI.pm) that asks the
user for the name of two files to be uploaded. After uploading
these files (which can be time-consuming, because they tend to be
big files), the program does some number-crunching on the data
contained in the files (also possibly time-consuming), and prints
out the results.

I want to give the user an idea of what's causing the delay; in
particular, I want to report something like "Loading <file1>",
"Loading <file2>", "Processing the data", preferably in the status
line at the bottom of the browser's window.

Is there a way to do this using Javascript to update the contents
of the status line at the bottom of the browser's window?

I know of a few limited ways in which the Perl CGI script can
"communicate" with Javascript (e.g. via the onLoad tag), but I
don't know if/how the Perl script can communicate with Javascript
mid-process, except perhaps by sending more pages (through a
multipart/x-mixed-replace MIME type).

Many thanks in advance!

-Jill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top