Rank: Member
Groups: Member
Joined: 1/26/2007(UTC) Posts: 11
|
Using an existing website, that uses masterpages, themes, etc. I created a new folder - "IU". I copied the .cab file and iuembed.js file into that folder. I then copied the MultipleDescriptions folder under that one. Since the website is set to use themes, I had to add runat="server" to the <HEAD> tag on the default.aspx and gallery.aspx pages. I then go to your default page, add a picture with the 'add' button. I see a javascript error. I then upload the picture and get "Image Uploaded encountered some problem. If you see this message, contact web master." So, I then created a new website and copied all your demos into that folder. It still gives the javascript error, but the upload works without error. So, the Javascript is broken, but the upload is 'fine', just needed that gallery stuff there I guess. So, I have it working (still get javascript error) and things seem ok. However, in testing, I am STILL getting errors. Sometimes it uploads, sometimes it does not. When it does not, I get the error of "some unexpected error occurred". Seems like sometimes you get the error 2-6 times out of 20. I turned debugging on - but dont get an additional page with an error or anything when this happens. I am really having trouble getting everything working. Perhaps I can try an older version or something? Here is the declaration: Code://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 = "../ImageUploader4.cab";
iu.activeXControlVersion = "4,1,1,0";
iu.addParam("LicenseKey", "xxxxxxxxxxxxxxx");
//For Java applet only path to directory with JAR files should be specified (without file name).
iu.javaAppletCodeBase = "../";
iu.javaAppletCached = true;
iu.javaAppletVersion = "2.0.79.0";
iu.showNonemptyResponse = "off";
//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("ShowDebugWindow", "true");
iu.addParam("ShowDescriptions", "false");
iu.addParam("EnableRotate", "false");
iu.addParam("ShowButtons", "false");
iu.addParam("RedirectUrl", "somepage.aspx");
iu.addParam("MessageUploadCompleteText","");
iu.addParam("EnableFileViewer", "false");
//Hide standard upload pane.
iu.addParam("FolderPaneHeight", "-1");
iu.addParam("FileMask", "*.jpg");
//Configure thumbnail settings.
//iu.addParam("UploadThumbnail1FitMode", "Fit");
//iu.addParam("UploadThumbnail1Width", "120");
//iu.addParam("UploadThumbnail1Height", "120");
//iu.addParam("UploadThumbnail1JpegQuality", "60");
iu.addParam("AdditionalFormName", "MainForm");
//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();
Edited by user Friday, February 22, 2008 4:56:58 PM(UTC)
| Reason: Not specified |