Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Rob@Sask  
#1 Posted : Friday, December 5, 2008 1:32:05 AM(UTC)
Rob@Sask

Rank: Member

Groups: Member
Joined: 8/27/2008(UTC)
Posts: 10

Hey all,

I disable the activeX control with ..

iu.activeXControlEnabled = false;
iu.javaAppletEnabled = true;

As per several examples. But when I do this and the java version loads in IE, I cannot see the thumbnail of images that are added as per normal operation. Has anyone encountered this and how can I resolve it?

Edit: I am using IE 7

Thanks,
Rob
Dmitry  
#2 Posted : Sunday, December 7, 2008 4:32:51 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Rob,

As far as I understand from your another post on this forum you use Image Uploader 5.1 with JRE 1.6 update 10. Unfortunately Image Uploader 5.1 has several known problems under JRE 1.6 update 10. You need to upgrade to Image Uploader 5.7.14.

Edited by user Sunday, December 7, 2008 4:40:42 PM(UTC)  | Reason: Not specified

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Rob@Sask  
#3 Posted : Monday, December 8, 2008 1:43:37 AM(UTC)
Rob@Sask

Rank: Member

Groups: Member
Joined: 8/27/2008(UTC)
Posts: 10

Hey Dmitry,

I have upgraded to version 5.7. Using the basic config with ActiveX control disabled in IE 7, I now see text instead of a thumbnail image that says....

Image Uploader ActiveX control is necessary to upload your files quickly and easily. You will be able to select multiple images in user-friendly interface instead of clumsy input fields with Browse button. Installation will take up to few minutes, please be patient. To install Image Uploader, please click on the Information Bar and select Install ActiveX Control from the dropdown menu. After page reload click Install when you see the control installation dialog.

Thoughts?
My javascript to insert control is:
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 520, 450);

//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "ImageUploader5.cab";
iu.activeXControlVersion = "5,7,14,0";

// If you do not want to use ActiveX or Java version, set the appropriate
// property to false.
iu.activeXControlEnabled = false;
iu.javaAppletEnabled = true;

//For Java applet only path to directory with JAR files should be specified (without file name).
alert("PATH IS: " + aurigmaFolder);
iu.javaAppletJarFileName = "ImageUploader5.jar";
iu.javaAppletCodeBase = aurigmaFolder;
iu.javaAppletCached = false;
iu.javaAppletVersion = "5.7.14.0";

iu.showNonemptyResponse = "off";

//Configure License Keys
iu.addParam("LicenseKey", "71050-4C88B-00000-0EA37-45F9C;72050-4C88B-00000-0D092-9811C");

//Configure appearance.
iu.addParam("PaneLayout", "ThreePanes");
iu.addParam("FolderView", "Thumbnails");

iu.addParam("BackgroundColor", "#eff1f9");
iu.addParam("ShowUploadListButtons", "true");
iu.addParam("ButtonRemoveFromUploadListText", "");
iu.addParam("ButtonRemoveAllFromUploadListText", "");
iu.addParam("FileMask", "*.jpg;*.jpeg;*.jpe;*.bmp;*.gif;*.png;*.tiff");

iu.addParam("ShowDescriptions", "false");
iu.addParam("AllowRotate", "true");
iu.addParam("ShowButtons", "false");

//Hide standard upload pane.
iu.addParam("FolderPaneHeight", "-1");

//Configure thumbnail settings.
iu.addParam("AllowRotate", "true");

//Exclude the source file from upload because only
//resized versions of the photo will be sent.
iu.addParam("UploadSourceFile", "false");

//Configure settings of the optimized image. Optimized image
//is resized to 1200x1200 with JPEG quality = 60 and EXIF
//metadata is preserved.
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "120");
iu.addParam("UploadThumbnail1Height", "120");
iu.addParam("UploadThumbnail1JpegQuality", "60");
iu.addParam("UploadThumbnail1CopyExif", "true");

//Configure URL files are uploaded to.
//uploadpage must be created in javascript elsewhere.
//RJNS - Nov 17, 2008
//This following section is assumed to be initialized in javascript elsewhere. These are the
//settings we use to configure the upload tool. Typically there is a server-side writing of <script>var uploadpage=SOMEVALUE</script>
//to insert the data from code-behind into the javascript.
iu.addParam("Action", uploadpage);
iu.addParam("MessageUploadCompleteText", "Your photos have been uploaded successfully. Thank you for contributing to our memories!");

//Configure URL where to redirect after upload.
//iu.addParam("RedirectUrl", "Default.aspx");

//Add event handlers.
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload")
iu.fullPageLoadListenerName = "fullPageLoad";

//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.
iu.writeHtml();
Dmitry  
#4 Posted : Monday, December 8, 2008 3:18:13 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

It seems you close script tag before you call writeHtml:
Code:

//settings we use to configure the upload tool. Typically there is a server-side writing of <script>var uploadpage=SOMEVALUE</script>
//to insert the data from code-behind into the javascript.
iu.addParam("Action", uploadpage);

I attached the updated script to this post, it is working okay for me.

Edited by user Monday, December 8, 2008 3:19:55 PM(UTC)  | Reason: Not specified

File Attachment(s):
JavaOnlySample.zip (709kb) downloaded 9 time(s).
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Rob@Sask  
#5 Posted : Wednesday, December 10, 2008 10:39:54 PM(UTC)
Rob@Sask

Rank: Member

Groups: Member
Joined: 8/27/2008(UTC)
Posts: 10

Dmitry,

That is merely a word-wrap issue, in my script it's a line commented out. To be sure, I removed the entire line but the problem still persists.

The issues I see when forcing java in IE are:

1. The thumbnail for an image when you add it to the bottom where you can enter in title and description (in multiple descriptions sample) is not present.

2. On some systems, I see the error message about ActiveX. That is usually in IE 8.

If you email me I can send you a live link for you to demo my code with.

Thx,
Rob
Dmitry  
#6 Posted : Thursday, December 11, 2008 1:58:22 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Rob,

Thank you for your answer.

Let us do the following:You may send me the link via PM or case.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
cooksie  
#7 Posted : Tuesday, December 23, 2008 12:14:15 AM(UTC)
cooksie

Rank: Member

Groups: Member
Joined: 7/10/2007(UTC)
Posts: 1

Dmitry,

It appears that even though I've configured it to pure-java as per above... the thumbnails that show in the bottom area are doing so via the ActiveX control. When I remove the ActiveX control in IE and reload my upload page, I load the browse area of the control fine in Java, but when I add a photo the browser prompts me to install the ActiveX control.

This is with version 5.7, using my version of the multiple descriptions demo, with ActiveX disabled with...

iu.activeXControlEnabled = false;
iu.javaAppletEnabled = true;

Is there additional steps I must do to disable the ActiveX for thumbnail area?

As per your request... the java console under 1.6.11 is:
Aurigma ImageUploader version: 5.7.14.0
Current document URL: http://demo.sharedevent....da&sp=Upload%20Photo
Reading cookies
Cookies: __utma=194675183.1487968889755359200.1229959901.1229959901.1229959901.1; __utmz=194675183.1229959901.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
Reading referer
Referer: http://demo.sharedevent....da&sp=Upload%20Photo
Thumbnail version: 5.7.14.0


One question concerning that... are you saying that the end-user will be REQUIRED to run java 1.6.11 or just that it was necessary for this console output?

Thanks,
Rob
Dmitry  
#8 Posted : Tuesday, December 23, 2008 3:20:01 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

I see that you use Thumbnail control in your application. So it seems you listed not full script in the top of this post because I did not notice ThumbnailWriter there.

While you create Thumbnail control using ThumbnailWriter helper object you need to disable ActiveX in ThumbnailWriter in the same way as you did it for ImageUploaderWriter.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.