JSAPI - JSTransferCompleted javascript

All others add-ons (Secure FTP, SCP, Flickr, scripts ...).
Post Reply
kkoehler
Posts: 6
Joined: Mon May 03, 2010 12:12 pm

JSAPI - JSTransferCompleted javascript

Post by kkoehler »

OK - I run the file upload and display the filename (param4a) back on the screen. After it is on the screen I would like to submit this information to another application. The filename displays on the screen but I can not pass it in to the program as it is not in the html.

Any ideas?

Kathy

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: JSAPI - JSTransferCompleted javascript

Post by support »

Can't you call:
var value = document.fileupload.getExtraParameter("yourcustomparam");
in the JSTransferCompleted callback ?

kkoehler
Posts: 6
Joined: Mon May 03, 2010 12:12 pm

Re: JSAPI - JSTransferCompleted javascript

Post by kkoehler »

OK - I have that working. I have 2 file upload applets on my screen and want to get the file name from one applet and store it in one field and get the file name of the other applet and store it in another field. How to I do that? One overwrites the other.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: JSAPI - JSTransferCompleted javascript

Post by support »

The problem is with the callbacks? You can define a target iFrame for the callback. Use one iFrame per applet instance. Also, use two different NAME for applet (see NAME parameters) :
For applet1:
<PARAM NAME="targetframe" VALUE="iframeid1">
...
document.fileupload1.getExtraParameter(...)

For applet2:
<PARAM NAME="targetframe" VALUE="iframeid2">
...
document.fileupload2.getExtraParameter(...)

Does it help?

Post Reply