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
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