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



Go to last post Go to first unread
#1 Posted : Thursday, February 21, 2008 12:53:37 AM(UTC)

Rank: Member

Groups: Member
Joined: 1/14/2008(UTC)
Posts: 18

The JAVA version is showing icons instead of thumbnails. The ActiveX works fine.

I have the latest versions of both the ActiveX and Java.

<script type="text/javascript">
//Create JavaScript object that will embed Image Uploader to the page.
var iu = new ImageUploaderWriter("ImageUploader1", 650, 250);

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

//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletJarFileName = "ImageUploader5.jar";
iu.javaAppletCodeBase = "../Content_Forms/imageuploader/";
iu.javaAppletCached = true;
iu.javaAppletVersion = "";
iu.showNonemptyResponse = "off";

//Configure License Keys
iu.addParam("LicenseKey", "(myactiveX);(myJava)");

//Debug window
iu.addParam("ShowDebugWindow", "true");

//Configure file uplaod restrictions.
var message = 'There is maximum of 25 images per gallery. You can only upload more image(s)';
iu.addParam("FileMask", "*.jpg;*.jpeg;*.jpe;*.bmp;*.gif");
iu.addParam("MaxFileCount", "0");
iu.addParam("MaxFileSize", "4000000");
iu.addParam("MessageMaxFileSizeExceededText", "The file [Name] cannot be selected. This file size exceeds the limit ([Limit] KB).");

//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("ShowDescriptions", "false");
iu.addParam("ShowButtons", "false");
iu.addParam("AllowRotate", "true");
iu.addParam("UploadSourceFile", "false");

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

//used for thumbnails
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "125");
iu.addParam("UploadThumbnail1Height", "125");
iu.addParam("UploadThumbnail1JpegQuality", "70");

//used for full sized image
iu.addParam("UploadThumbnail2FitMode", "Fit");
iu.addParam("UploadThumbnail2Width", "1024");
iu.addParam("UploadThumbnail2Height", "768");
iu.addParam("UploadThumbnail2JpegQuality", "70");

//Configure URL files are uploaded to.
iu.addParam("Action", "upload.aspx");

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

function ImageUploader_AfterUpload(){


function beforeUploadHandler() {

var galleryid = document.getElementById("HiddenFieldGalleryId").value;
getImageUploader("ImageUploader1").AddField("GalleryId", document.getElementById("HiddenFieldGalleryId").value);
getImageUploader("ImageUploader1").AddField("UserName", document.getElementById("HiddenFieldUserName").value);


//Tell Image Uploader writer object to generate all necessary HTML code to embed
//Image Uploader to the page.

stewsterl attached the following image(s):
George Ulyanov  
#2 Posted : Thursday, February 21, 2008 11:46:02 AM(UTC)
George Ulyanov

Rank: Advanced Member

Groups: Member
Joined: 7/26/2006(UTC)
Posts: 203


What version of JRE is installed on the machine?
Probably you have an older one, like here:

Edited by user Monday, February 25, 2008 5:19:09 PM(UTC)  | Reason: Not specified

Best regards,
George Ulyanov
#3 Posted : Friday, February 22, 2008 1:08:04 AM(UTC)

Rank: Member

Groups: Member
Joined: 1/14/2008(UTC)
Posts: 18

That was it thanks..

However, this still leaves me with the issue on user systems. Most users are not savy enough to update their own version of JRE.

Does anyone know how to detect the version of JRE a user has?

If the version is under 1.4.2_06 I would recomened the user to upgrade and provide a link? http://www.java.com/en/download/installed.jsp
George Ulyanov  
#4 Posted : Tuesday, February 26, 2008 2:48:55 PM(UTC)
George Ulyanov

Rank: Advanced Member

Groups: Member
Joined: 7/26/2006(UTC)
Posts: 203

Simply search gave me the next link:

Hope it'll be helpful.
Best regards,
George Ulyanov
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.