Need to close a popup after javascript completes image upload then load new page
Posted
by Michael Robinson
on Stack Overflow
See other posts from Stack Overflow
or by Michael Robinson
Published on 2010-04-10T22:44:46Z
Indexed on
2010/04/10
22:53 UTC
Read the original article
Hit count: 315
I got a problem. I have a image upload script that runs on a popup up when you select "upload button", after it is complete instead of closing it stays in the uploader.html window. I need it to close and go to a new page.
Here is some of the xml that the script uses, can I change the "urlOnUploadSucess" line to close the popup and load a new page on the original page I came from?
.....<upload preload="Preloading images:" upload="Uploading images to server:" prepare="Processing and image compression:" of="of" cancel="Cancel" start="Start" warning_empty_required_field="Warning! One of the required fields is empty!" confirm="Will be uploaded:"/>
<urls urlToUpload="upload.php?"
urlOnUploadSuccess="http://www.baublet.com/purchase.html"
urlOnUploadFail="http://www.baublet.com/tryagain.html"
urlUpdateFlashPlayer="http://www.baublet.com/flashalternative.html"
useMessageBoxesAfterUpload="false" messageOnUploadSuccess="Images were successfully
uploaded!" messageOnUploadFail="Error! Images failed to upload!"
jsFunctionNameOnUpload=""/> .....
Thanks,
Michael
© Stack Overflow or respective owner