JSTransferCompleted, JSTransferDone not firing

Upload core product.

JSTransferCompleted, JSTransferDone not firing

Postby tszarans » Sat Jul 14, 2012 6:57 pm

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
tszarans
 
Posts: 9
Joined: Thu May 13, 2010 11:41 pm

Re: JSTransferCompleted, JSTransferDone not firing

Postby support » Sun Jul 15, 2012 1:03 pm

You need JSAPI Enterprise too, do you have it? If not please contact support(at)jfileupload(dot)com and they will provide it.
User avatar
support
 
Posts: 1398
Joined: Sun Jan 27, 2008 6:19 pm

Re: JSTransferCompleted, JSTransferDone not firing

Postby tszarans » Mon Jul 16, 2012 12:49 pm

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" ');
tszarans
 
Posts: 9
Joined: Thu May 13, 2010 11:41 pm

Re: JSTransferCompleted, JSTransferDone not firing

Postby support » Tue Jul 17, 2012 12:33 pm

Yes, true. It was in the HTML/JavaScript sample of JSAPI add-on.
User avatar
support
 
Posts: 1398
Joined: Sun Jan 27, 2008 6:19 pm


Return to JFileUpload




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.