Rank: Member
Groups: Joined: 1/31/2007(UTC) Posts: 8
|
I am using Image Uploader dual 4.1 and I am having trouble with Internet Explorer (Active X version only). About 50% of the time we are getting the error message 'Some Unexpected Error Occurred'. I know the help file suggestions that this is related to a connection problem but that doesn't add up in our case. On the same computer the Java version work perfectly in Firefox. In addition, when I disable the ActiveX version and run Java in IE it also works flawlessly. This is in IE 6. We have testing the extensively with at least 20 attempts using each method. We also testing this with the online demo on the Aurigma site. It seemed to work ok there. We didn't receive any errors. Which makes me think it is something in our code. I will include it below. Thank you for your help. Code:<script language="javascript">
// change view
function ImageUploader_ViewChange(){
document.getElementById("selectView").selectedIndex = window.ImageUploader.getFolderView();
}
function ImageUploader_Progress(Status, Progress, ValueMax, Value, StatusText) {
if (Status == "COMPLETE"){
//StatusText contains response from <br>
window.location="success.asp?filecount=" + StatusText;
//window.location.href="success.asp?filecount=" + StatusText;
}
}
var iu = new ImageUploaderWriter("ImageUploader",563,422);
//For ActiveX control full path to CAB file (including file name) should be specified.
iu.activeXControlCodeBase = "ImageUploader4.cab";
iu.activeXControlVersion = "4,1,1,0";
//For Java applet only path to directory with JAR files should be specified (without file name).
//iu.javaAppletCodeBase = "";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.1.1.0";
iu.showNonemptyResponse = "off";
iu.addParam("Layout", "ThreePanes");
iu.addParam("FolderView", "Thumbnails");
iu.addParam("UploadView", "Thumbnails");
iu.addParam("PreviewThumbnailSize", "86");
iu.addParam("UploadThumbnail1FitMode", "fit");
iu.addParam("UploadThumbnail1Width", "87");
iu.addParam("UploadThumbnail1Height", "87");
iu.addParam("UploadThumbnail1JpegQuality", "70");
iu.addParam("UploadThumbnail2FitMode", "fit");
iu.addParam("UploadThumbnail2Width", "510");
iu.addParam("UploadThumbnail2Height", "510");
iu.addParam("UploadThumbnail2JpegQuality", "100");
iu.addParam("UploadThumbnail2ResizeQuality", "High");
iu.addParam("AllowRotate", "true");
iu.addParam("MaxFileSize", "10485760");
iu.addParam("MaxFileCount", "350");
iu.addParam("BackgroundColor", "#FFFFFF");
iu.addParam("PaneBackgroundColor", "#FFFFFF");
iu.addParam("ButtonAddAllToUploadListText", "False");
iu.addParam("ButtonAddToUploadListText", "False");
iu.addParam("ButtonRemoveAllFromUploadListText", "Remove All");
iu.addParam("ButtonRemoveFromUploadListText", "Remove");
iu.addParam("ShowFileNames", "False");
iu.addParam("ShowDescriptions", "False");
iu.addParam("ShowButtons", "False");
iu.addParam("ShowUploadListButtons", "False");
iu.addParam("ShowStatusPane", "False");
iu.addParam("ShowDebugWindow", "True");
iu.addParam("AdditionalFormName", "Form1");
iu.addParam("FilesPerOnePackageCount", 1);
iu.addParam("FileMask", "*.jpg;");
iu.addParam("TimeOut", "0");
iu.addParam("Action", "processUpload.asp?album=<% Response.Write(album) %>");
//iu.addParam("RedirectUrl", "");
iu.addEventListener("Progress", "ImageUploader_Progress");
iu.writeHtml();
</script>
Edited by user Wednesday, February 20, 2008 7:24:37 PM(UTC)
| Reason: Not specified
|