calling information via javascriptcalling information via javascriptHello i know there is a way of calling the file size via javascript e.g. onclick="this.form.field3a.value=document.fileupload.size() but what else i need is the file size, is there a seperate javascript function I could call to get the size of the file uploading?
Re: calling information via javascriptIf you install the JSAPI, you have a callback with file size:
Code: Select all
The JSAPI is available at: http://www.jfileupload.com/products/tools/index.html Re: calling information via javascripthello do you have the file applet_ftp_jsapi.js as its mising from the zip file and only shows the http version, i tried modifying my exsisting ftp version but get errors iv copied the jsapi.jar in to the lib folder so its just the applet_ftp_jsapi.js i need to modify? i tried this
but get errors this basic: error: jfileupload/upload/client/MApplet. java.lang.NoClassDefFoundError: jfileupload/upload/client/MApplet at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source) at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source) at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: jfileupload.upload.client.MApplet at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) ... 19 more Caused by: java.io.IOException: open HTTP connection failed:http://www.my-site.co.uk/jfileupload/up ... plet.class at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source) at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source) at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) ... 23 more Exception: java.lang.NoClassDefFoundError: jfileupload/upload/client/MApplet Ignored exception: java.lang.NoClassDefFoundError: jfileupload/upload/client/MApplet Re: calling information via javascriptHere is the sample for JFileUpload FTP + JavaScript API:
Does it help ?Re: calling information via javascriptstill getting errors so I have emailed you a zip of my current files.
Re: calling information via javascriptYou have the same error with our online demo ?
You have a problem of Java cache. Try to clean it: Start->Control Panel->Java->First tab->Delete temporary files->Apply Then clean browser cache, close all browser windows and try again. Re: calling information via javascriptHello I have cleared all caches java and IE temp folder, still no luck.To simplify the matter could you do a zip file that includes all files that shows me this working as i have had no luck and is crucial I get this working for my site. Thanks
Re: calling information via javascriptThank you very much support team this has enabled me to sort it out nice 1 for the zip file!
Re: calling information via javascriptThanks for your ftp version could it be possible to upload a zip file of a proven working demo of this is http mode as I having difficulty confirguring at the moment, regards sean
|