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

Notification

Icon
Error

Options
Go to last post Go to first unread
bdavi19  
#1 Posted : Thursday, June 25, 2009 3:13:46 AM(UTC)
bdavi19

Rank: Member

Groups: Member
Joined: 3/23/2006(UTC)
Posts: 14

We have recently upgraded to v6 of the image uploader. It works great in IE as an ActiveX app, but the Java app has a problem. When you hover over an image, instead of the Rotate and delete buttons showing up on only that image, they show up on all the images, and when you click to rotate it rotates all images.

UserPostedImage

This doesn't happen in ActiveX v6 or in ActiveX or Java v5. Any ideas what may be causing this? The only code change I've made between the old version and the new one is to update the version.

Tamila  
#2 Posted : Thursday, June 25, 2009 3:22:50 PM(UTC)
Tamila

Rank: Advanced Member

Groups: Administration
Joined: 3/9/2008(UTC)
Posts: 554

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

Could you please post here the code snippet with Image Uploader parameters.

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!

bdavi19  
#3 Posted : Wednesday, July 1, 2009 11:36:45 PM(UTC)
bdavi19

Rank: Member

Groups: Member
Joined: 3/23/2006(UTC)
Posts: 14

Here is the code we use. I left out the licensing line for obvious reasons:

//<![CDATA[

//Create JavaScript object that will embed Image Uploader to the page.

var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);

//For ActiveX control full path to CAB file (including file name) should be specified.

iu.activeXControlCodeBase = "./Components/ImageUploader6.cab";

iu.activeXControlVersion = "6,0,11,0";

//For Java applet only path to directory with JAR files should be specified (without file name).

iu.javaAppletJarFileName = "./Components/ImageUploader6.jar";

iu.javaAppletCodeBase = "./";

iu.javaAppletCached = true;

iu.javaAppletVersion = "6.0.11.0";

iu.showNonemptyResponse = "dump";

iu.addParam("SilentMode", "false");

//Configure appearance.

iu.addParam("PaneLayout", "OnePane");

iu.addParam("ShowDebugWindow", "true");

iu.addParam("BackgroundColor", "#ffffff");

iu.addParam("AllowRotate", "true");

iu.addParam("AllowAutoRotate", "true");

iu.addParam("ShowDescriptions", "false");

iu.addParam("AllowMultipleRemove", "true");

iu.addParam("AllowMultipleRotate", "true");

iu.addParam("FilesPerOnePackageCount", "4");

//iu.addParam("UploadView", "Thumbnails");

iu.addParam("UploadView", "AdvancedDetails");

iu.addParam("AdvancedDetailsPreviewThumbnailSize", "40");

iu.addParam("MaxFileCount", "500");

iu.addParam("MessageMaxFileCountExceededText", "You cannot select to upload more then 500 images at once.");

//if( $.browser.safari() == false){

iu.addParam("MessageUploadCompleteText", "");

//}

//Configure thumbnail settings.

iu.addParam("UploadThumbnail1FitMode", "Fit");

iu.addParam("UploadThumbnail1Width", "164");

iu.addParam("UploadThumbnail1Height", "164");

iu.addParam("UploadThumbnail1JpegQuality", "80");

iu.addParam("UploadThumbnail1CopyExif", "true");

iu.addParam("FileMask", "*.jpg;*.jpeg");

//Configure URL files are uploaded to.

iu.addParam("Action", "UploadHandler.aspx?ControlType=" + iu.getControlType())

//Configure URL where to redirect after upload.

iu.addParam("RedirectUrl", "http://ccstransfer.candid.com/CCSTransferWeb/Conflicts.aspx")

//iu.addParam("RedirectUrl", "http://localhost/CCSTransferWeb/Conflicts.aspx")

//Attach Event Listeners

iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");

iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload");

//Image Uploader to the page.

iu.writeHtml();

Tamila  
#4 Posted : Thursday, July 2, 2009 3:06:00 PM(UTC)
Tamila

Rank: Advanced Member

Groups: Administration
Joined: 3/9/2008(UTC)
Posts: 554

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

Thank you for the code, I have reproduce your problem locally.

You have this problem because of two properties:

iu.addParam("AllowMultipleRemove", "true");

iu.addParam("AllowMultipleRotate", "true");

How does it work? When you press Add Files and add files in upload pane, all files are selected by default. That is why you see rotate arrows and remove crosses.

But if you do not want to remove above properties you can use the following code. It deselects all items in upload pane:

Code:
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");
//...

function ImageUploader_UploadFileCountChange() {
	getImageUploader("ImageUploader1").DeselectAll();
}

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Guest
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.