JSTransferCompleted, JSTransferDone not firing

Upload core product.
Post Reply
tszarans
Posts: 9
Joined: Thu May 13, 2010 11:41 pm

JSTransferCompleted, JSTransferDone not firing

Post by tszarans »

I'm using 2.9 enterprise version of the jupload tool, and was trying to get the JSTransferCompleted call back to work. I download the jsapi.jar from the web site, and adjusted the appropriate applet parameters to include it, and from the java console it appears to be loaded:
security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@29886bfe
basic: Plugin2ClassLoader.addURL parent called for http://.../jclientupload/lib/jfileupload.jar
basic: Plugin2ClassLoader.addURL parent called for http://.../jclientupload/lib/httpimpl.jar
basic: Plugin2ClassLoader.addURL parent called for http://.../jclientupload/lib/chttpclient.jar
basic: Plugin2ClassLoader.addURL parent called for http://.../jclientupload/lib/clogging.jar
basic: Plugin2ClassLoader.addURL parent called for http://.../jclientupload/lib/ifilter.jar
basic: Plugin2ClassLoader.addURL parent called for http://.../jclientupload/lib/jai_imageio.jar
basic: Plugin2ClassLoader.addURL parent called for http://.../jclientupload/lib/previewui.jar
basic: Plugin2ClassLoader.addURL parent called for http://.../jclientupload/lib/jsapi.jar
security: Blacklist revocation check is enabled
security: Trusted libraries list check is enabled
I have added a simple callback to test in

Code: Select all

function JSTransferDone(filelist)
{
alert("done = " + filelist );
} 
function JSTransferCompleted(filelist)
{
alert(filelist);
} 
However, after an upload, the function(s) are not called.

What am I doing wrong?

Thanks,
Tony

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

Re: JSTransferCompleted, JSTransferDone not firing

Post by support »

You need JSAPI Enterprise too, do you have it? If not please contact support(at)jfileupload(dot)com and they will provide it.

tszarans
Posts: 9
Joined: Thu May 13, 2010 11:41 pm

Re: JSTransferCompleted, JSTransferDone not firing

Post by tszarans »

Thanks - that did the trick.

Also needed to change the following - which I didn't notice at a quick glance.

Code: Select all

document.write('CODE="jfileupload.upload.client.MApplet.class" ');
to:

Code: Select all

document.write('CODE="jfileupload.upload.client.JSMApplet.class" ');

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

Re: JSTransferCompleted, JSTransferDone not firing

Post by support »

Yes, true. It was in the HTML/JavaScript sample of JSAPI add-on.

Post Reply