Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
http://www.tinywebgallery.com/forum/

upload_finished_js_url / uploadFinished
http://www.tinywebgallery.com/forum/flash-upload-tfu-f12/upload-finished-js-url-uploadfinished-t629.html
Page 1 of 1

Author:  conradicus [ 19. Nov 2006, 03:28 ]
Post subject:  upload_finished_js_url / uploadFinished

I can't figure out how to get this function to trigger when the upload is finished. I tried everything. I read all the documentation (included and online), FAQ's, searched this forum and tried Google.

Can you provide a working sample of this?

I use the following setting and I have it uploading perfectly to my web server.

$upload_file = "&upload_file=save.php";

Conrad

Author:  conradicus [ 19. Nov 2006, 03:30 ]
Post subject:  RE: upload_finished_js_url / uploadFinished

I forgot to mention that I am using the unlimited version.

Author:  TinyWebGallery [ 20. Nov 2006, 00:26 ]
Post subject: 

yopu have to set : $upload_finished_js_url

the example is in the comment right to it!
And the html file in the donwlaod has already dummys for js functions!

/Michael

Author:  conradicus [ 20. Nov 2006, 17:13 ]
Post subject: 

I have that but I dont understand the sample. What are the question marks beside it for. Do they provide status in the loc variable passed to the script? I alert it and get nothing.

Author:  TinyWebGallery [ 20. Nov 2006, 17:27 ]
Post subject: 

if the upload is finshed and you e.g. set

$upload_finished_js_url = "&upload_finished_js_url=status.php";

The the javascript function uploadFinished(loc) in e.g. twg_flash_uploader.html is called!

put an alert in there first :).

loc is the parameter you specify in the config - here: sttus.php.

And with javascript you can e.g. load someithing in an iframe or whatever you want.

/Michael

Author:  conradicus [ 20. Nov 2006, 17:39 ]
Post subject: 

Now it makes sense! Thanks so much. :lol:

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/