J
J Y
Hi all,
I'm trying to use the RadUpload java-based file uploader inside of a
Ruby on Rails application, and I'm running into some problems, which I
don't think are dependent on the actual applet. In order to save users
from having to load the applet immediately at page load, I have a
link, which triggers an AJAX request to load the applet within a div
on the page.
The problem happens intermittently on Firefox and IE7 on my machine,
and always happens in IE7 on another machine that I'm testing on. I've
googled all over the place and haven't had any luck. Any help much
appreciated!
Here is the code for loading the applet, which is loaded from the
server side within a div innerHTML on the page when the user clicks
the link:
<applet
archive = "/radupload/dnd.jar"
code = "com.radinks.dnd.DNDApplet"
name = "Rad Upload"
hspace = "0"
vspace = "0"
width = "290"
height = "290"
align = "middle"
MAYSCRIPT="yes"
<param name="jsnotify" value="yes">
<param name = "message" value="Drag and Drop your files
here to upload them.">
</applet>
And the error I'm receiving in the Java console:
Java Plug-in 1.6.0_05
Using JRE version 1.6.0_05 Java HotSpot(TM) Client VM
java.lang.NullPointerException
at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I'm trying to use the RadUpload java-based file uploader inside of a
Ruby on Rails application, and I'm running into some problems, which I
don't think are dependent on the actual applet. In order to save users
from having to load the applet immediately at page load, I have a
link, which triggers an AJAX request to load the applet within a div
on the page.
The problem happens intermittently on Firefox and IE7 on my machine,
and always happens in IE7 on another machine that I'm testing on. I've
googled all over the place and haven't had any luck. Any help much
appreciated!
Here is the code for loading the applet, which is loaded from the
server side within a div innerHTML on the page when the user clicks
the link:
<applet
archive = "/radupload/dnd.jar"
code = "com.radinks.dnd.DNDApplet"
name = "Rad Upload"
hspace = "0"
vspace = "0"
width = "290"
height = "290"
align = "middle"
MAYSCRIPT="yes"
<param name="jsnotify" value="yes">
<param name = "message" value="Drag and Drop your files
here to upload them.">
</applet>
And the error I'm receiving in the Java console:
Java Plug-in 1.6.0_05
Using JRE version 1.6.0_05 Java HotSpot(TM) Client VM
java.lang.NullPointerException
at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)