Rank: Member
Groups: Member
Joined: 10/29/2006(UTC) Posts: 21
|
Hi, I'm having similar problems as those mentioned in this thread. I definitely have the correct object because I can read back other properties such as the Action for the uploader. Also, the code works perfectly in Firefox, but the problem is in IE6. I get the same error "object doesn't support this property or method" when I try to check the number of files added using getUploadFileCount() I could try and track the number myself using the events that are fired when adding/removing files, but I am expecting large numbers of files to be added at a time, and I don't want to slow that down any more than necessary. The relevant code is: Code: var iu = new ImageUploaderWriter("ImageUploader", 700, 240);
iu.activeXControlEnabled = true;
iu.javaAppletEnabled = true;
iu.activeXControlCodeBase = "/ImageUploader4.cab";
iu.javaAppletCodeBase="/";
iu.javaAppletCached=false;
iu.addParam("LicenseKey", "xxx");
iu.addParam("BackgroundColor", "#becdde");
iu.addParam("PaneLayout", "OnePane");
iu.addParam("UploadView", "List");
iu.addParam("FolderView", "List");
iu.addParam("ShowButtons", "false");
iu.addParam("AllowAutoRotate", "true");
iu.addParam("AllowFolderUpload", "true");
iu.addParam("EnableRotate", "false");
iu.addParam("FileMask", "*.jpg;*.jpeg;*.bmp;*.gif;*.psd;*.png");
iu.addParam("ProgressDialogEstimatedTimeText", "");
iu.addParam("UploadSourceFile", "false");
iu.addParam("MessageUploadCompleteText", "Photos have been uploaded. You will now be taken to an upload summary page.");
iu.addParam("UploadThumbnail1FitMode", "Fit");
iu.addParam("UploadThumbnail1Width", "600");
iu.addParam("UploadThumbnail1Height", "600");
iu.addParam("UploadThumbnail1JpegQuality", "80");
iu.addParam("MaxImageWidth", "0");
iu.addParam("MinImageWidth", "0");
iu.addParam("MaxImageHeight", "0");
iu.addParam("MinImageHeight", "0");
iu.addParam("SignatureFilter", "All");
iu.addParam("MaxFileCount", "500");
iu.addParam("LoadingFilesText", "Your files are being loaded into the browser for upload, please wait a moment...");
iu.addParam("DropFilesHereText", "Either click on one of the buttons above to select the files that you want to upload, or simply drag them into this area.");
iu.addParam("FilesPerOnePackageCount", 5);
iu.addEventListener("InitComplete", "ImageUploaderID_InitComplete");
iu.addEventListener("Progress", "ImageUploaderID_Progress");
iu.writeHtml();
function showPreUpload()
{
var theUploader = getImageUploader("ImageUploader");
alert(theUploader.Action); // this line works fine showing that I have the correct object although returns "undefined" in Firefox
numFilesSelected = theUploader.getUploadFileCount(); // this line works in FF, fails with IE6
alert(numFilesSelected);
}
Any thoughts? Edited by user Thursday, February 21, 2008 10:35:21 PM(UTC)
| Reason: Not specified
|