JSAPI - JSTransferCompleted javascript

All others add-ons (Secure FTP, SCP, Flickr, scripts ...).

JSAPI - JSTransferCompleted javascript

Postby kkoehler » Tue May 04, 2010 8:12 pm

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
kkoehler
 
Posts: 6
Joined: Mon May 03, 2010 12:12 pm

Re: JSAPI - JSTransferCompleted javascript

Postby support » Wed May 05, 2010 6:11 am

Can't you call:
var value = document.fileupload.getExtraParameter("yourcustomparam");
in the JSTransferCompleted callback ?
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: JSAPI - JSTransferCompleted javascript

Postby kkoehler » Wed May 05, 2010 12:58 pm

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.
kkoehler
 
Posts: 6
Joined: Mon May 03, 2010 12:12 pm

Re: JSAPI - JSTransferCompleted javascript

Postby support » Wed May 05, 2010 5:43 pm

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?
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm


Return to Others



cron

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.