Need to close a popup after javascript completes image upload then load new page
- by Michael Robinson
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