open a temp window to ask a user to wait while an upload is taking place

L

Lisa

I have a Perl script that's called as a CGI to handle the form
submission from a browser, thru which a user from the web can up load
an image file. I would like, when the user clicks the "Send Image"
button, to pop up a small window containing an animated (working -
please be patient) .gif while the image is uploaded from thier computer
to the server, once the transfer is complete, I would like to close the
pop up window and then load the new page in the original window.

That being the said, the Perl script won't be called at all until the
upload is finished, at which point its too late to do something like
what I am describing here.

Is there a way to open this popup window as possably a child of the
current window (inwhich the user clicked the button) so that the "Be
patient window" displays the gif, then once the upload is complete and
the Perl script is finaly called, which would then update the original
window causing the popup to close automaticly?

If so how would one do this, or some such other reasonably close
sequence of events?

Lisa
 
D

Daniel Kirsch

Lisa said:
Is there a way to open this popup window as possably a child of the
current window (inwhich the user clicked the button) so that the "Be
patient window" displays the gif, then once the upload is complete and
the Perl script is finaly called, which would then update the original
window causing the popup to close automaticly?

Instead of a window I would use a absolute positioned element which of
course could be an img element referencing your gif file. This will show
even if a user has a popupblocker and will automatically be "closed"
when a new page will be loaded.
The element will be hidden by default. Show it on submit of your form
before you upload the image.

Daniel
 

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

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top