|
|
Rank: Member Groups: Member
Joined: 7/28/2006 Posts: 3 Points: 3
|
Hello, I've just downloaded the trial of Image Uploader and plan on purchasing it as soon as I get this straightened out. Here's my relevent code: Code:
iu.activeXControlCodeBase = "/aurigmaImageUploadFiles/ImageUploader4.cab";
iu.activeXControlVersion = "4,0,33,0";
iu.javaAppletCodeBase = "/aurigmaImageUploadFiles/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.0.35.0";
Both the java applet and the activeX controller are in the same folder, and the activex one will load fine in IE, but the java one won't load in firefox. I'm using windows xp with sp2. Any help would be greatly appreciated. Thanks, Kevin
|
|
 Rank: Advanced Member Groups: Administration
, Member
Joined: 7/28/2003 Posts: 1,254 Points: -345 Location: WA, US
|
Hello Kevin, Quote:Both the java applet and the activeX controller are in the same folder, and the activex one will load fine in IE, but the java one won't load in firefox. I'm using windows xp with sp2. Any help would be greatly appreciated. What error do you see in Java console?
Best regards, Fedor Skvortsov
|
|
Rank: Member Groups: Member
Joined: 7/28/2006 Posts: 3 Points: 3
|
Okay, I figured out the problem, I didn't have java installed.
However, it did not prompt me to install java. Is there a way to get it to prompt you to install java if you do not have it installed?
|
|
 Rank: Advanced Member Groups: Administration
, Member
Joined: 7/28/2003 Posts: 1,254 Points: -345 Location: WA, US
|
Quote:However, it did not prompt me to install java. Is there a way to get it to prompt you to install java if you do not have it installed? Have not you seen Firefox information bar about missing plugins? 
Fedor attached the following image(s):

Best regards, Fedor Skvortsov
|
|
Rank: Member Groups: Member
Joined: 8/14/2006 Posts: 3 Points: 0
|
Hello. I am having a similar problem. When I enter the page with the applet all I see is a red X in the corner of the applet area. Here are the details: Code:
<script language="javascript">
var iu = new ImageUploaderWriter("ImageUploader", 650, 450);
iu.activeXControlEnabled = true;
iu.javaAppletEnabled = true;
iu.addParam("LicenseKey", "XXXX-XXXX-XXXX-XXXX"); <--REMOVED FOR PRIVACY!!
iu.activeXControlCodeBase = "/_scripts/iu/ImageUploader4.cab";
iu.activeXControlVersion = "4,0,33,0";
iu.javaAppletCodeBase="/_scripts/iu/";
iu.javaAppletVersion = "2.0.35.0";
iu.addParam("MaxFileCount", "10");
iu.addParam("MaxFileSize", "2097150");
iu.addParam("MaxTotalFileSize", "10485760");
iu.showNonemptyResponse = "off";
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");
iu.addParam("FileMask", "*.jpg;*.jpeg;*.jpe;*.bmp;*.gif");
iu.addParam("Action", "/sell/upload.asp")
iu.addParam("RedirectUrl", "<%=GetRedirectURL(intRedirect)%>")
iu.addParam("UploadSourceFile", "true");
iu.writeHtml();
</script>
The Error Reported by the Java Console is: Code:load: class com.aurigma.imageuploader.ImageUploader.class not found. java.lang.ClassNotFoundException: com.aurigma.imageuploader.ImageUploader.class at sun.applet.AppletClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.applet.AppletClassLoader.loadCode(Unknown Source) at sun.applet.AppletPanel.createApplet(Unknown Source) at sun.plugin.AppletViewer.createApplet(Unknown Source) at sun.applet.AppletPanel.runLoader(Unknown Source) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: open HTTP connection failed. at sun.applet.AppletClassLoader.getBytes(Unknown Source) at sun.applet.AppletClassLoader.access$100(Unknown Source) at sun.applet.AppletClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) ... 10 more Not sure what the problem is. Works great in IE. Please review my code. Does it have to do with the file path having an underscore in it. It seems as though the Image Uploader class cannot be found. Thanks.
|
|
 Rank: Advanced Member Groups: Member
Joined: 8/3/2003 Posts: 996 Points: 1
|
Hello, As I see on the Java console your browser can not find ImageUploader2.jar file. Check if the file is really in the specified path (./_scripts/iu/). Try to explicitly set all the parameters regarding applet: Code:
iu.javaAppletEnabled = true;
iu.javaAppletJarFileName="ImageUploader2.jar";
iu.javaAppletClassName="com.aurigma.imageuploader.ImageUploader.class";
iu.javaAppletCodeBase="/_scripts/iu/";
iu.javaAppletVersion = "2.0.35.0";
Sincerely yours, Alex Makhov
|
|
Rank: Member Groups: Member
Joined: 8/14/2006 Posts: 3 Points: 0
|
The code that you gave me I added to my existing code and it worked. Just brilliant man! I send you many thanks for the quick response. :D :cool:
|
|
|
Guest |