I have a simple file uploader. user selects file and it uploads. Depending on siz eof file the page could take ages to change or matter of seconds which then shows if the file uploaded or not.
I want to add a popup that shows an image saying uploading while the file is uploading. this is to tell the user that the file is actually being uploaded and to wait patiently.
Now i have the popup to open when they submit the form with the following code:
What has had me stuck for hours is how to close that popup when the main page has finished uploading and has given some output.
Now ive tried using methods such as onUnload=closemypopup() onLoadclosemypopup() and used js to tell the popup to close:
But these just dont work for some reason. I get js errors saying that windowuploading is undefined. I presume this is because the main page has changed.
Now I have found a way to acomplish what i want but its just not practical. and that is when the main page has refreshed is put on that page to open the same popup and then close it. Because the same popup is being opened instead of 2 popups it just refreshes the first one.
For a visual demo go to:
http://www.steezmatic-designs.com/mo...=File_Uploader
You can see the popup open. Im looking for a way to close it once the main page has finished uploading.
Some one please help me. thank you.