troubleshooting Question

How to write aurigma image uploader to a div

Avatar of tim_carter
tim_carter asked on
JavaScript
4 Comments1 Solution716 ViewsLast Modified:
Hi Guys

Im using the Aurigma image uploader.. When i trigger iu.writeHTML it writes the uploader.. but it cleares the page.. is there a way i can write it into a div . something like

document.getElementById('mydiv').innerHTML = iu.writeHTML;

var iu = new ImageUploaderWriter("ImageUploader1", 550, 500);
 
	//For ActiveX control full path to CAB file (including file name) should be specified.
	iu.activeXControlCodeBase = "/ImageUploader/Components/ImageUploader5.cab";
	iu.activeXControlVersion = "5,5,6,0";
 
	//For Java applet only path to directory with JAR files should be specified (without file name).
	iu.javaAppletJarFileName = "/ImageUploader/Components/ImageUploader5.jar";
	iu.javaAppletCodeBase = "/ImageUploader/Components/";
	iu.javaAppletCached = true;
	iu.javaAppletVersion = "5.5.6.0";
 
	iu.showNonemptyResponse = "off";
 
	//Configure appearance.
	iu.addParam("PaneLayout", "TwoPanes");
	iu.addParam("ShowDebugWindow", "true");
	iu.addParam("AllowRotate", "false");
	iu.addParam("BackgroundColor", "#392e28");
	iu.addParam("ButtonFontName", "arial");
	iu.addParam("ButtonFontSize", "8");
	iu.addParam("ButtonSelectAllText", "Markér Alle");
	iu.addParam("ButtonDeselectAllText", "DeMarkér Alle");
	iu.addParam("ButtonSendText", "Send");
	iu.addParam("EditDescriptionText", "Rediger beskrivelse...");
	iu.addParam("ShowDescriptions", "false");
	iu.addParam("DescriptionEditorButtonCancelText", "Annuller");
	iu.addParam("DropFilesHereText", "Træk filer hertil");
	iu.addParam("ButtonAddToUploadListText", "Tilføj");
	iu.addParam("ButtonAddAllToUploadListText", "Tilføj Alle");
	iu.addParam("ButtonRemoveFromUploadListText", "Fjern");
	iu.addParam("ButtonRemoveAllFromUploadListText", "Fjern Alle");
	iu.addParam("ProgressDialogTitleText", "Sender filer");
	iu.addParam("ProgressDialogPreparingDataText", "Forbereder data...");
	iu.addParam("HoursText", "timer");
	iu.addParam("MinutesText", "minutter");
	iu.addParam("SecondsText", "sekunder");
	iu.addParam("ProgressDialogCancelButtonText", "Annuller");
	iu.addParam("MessageBoxTitleText", "Billede Uploader");
	iu.addParam("ProgressDialogCloseWhenUploadCompletesText", "Luk denne dialog når filerne er overført");
	iu.addParam("MessageUploadCompleteText", "Filer overført.");
	iu.addParam("MessageUploadCancelledText", "Fil overførsel blev annulleret.");
	iu.addParam("LoadingFilesText", "Henter filer...");
 
	iu.addParam("UploadPaneBackgroundColor", "#ffffff");
	iu.addParam("PaneBackgroundColor", "#ffffff");
	iu.addParam("UploadPaneBorderStyle", "Fixed3D");
 
 
 
	iu.addParam("MenuThumbnailsText", "Billeder");
	iu.addParam("MenuDetailsText", "Detaljer");
	iu.addParam("MenuIconsText", "Ikoner");
	iu.addParam("MenuArrangeByText", "Arranger Ikoner efter");
	iu.addParam("MenuSelectAllText", "Markér Alle");
	iu.addParam("MenuDeselectAllText", "DeMarkér Alle");
	iu.addParam("MenuInvertSelectionText", "Vend Markering");
	iu.addParam("MenuAddToUploadListText", "Tilføj");
	iu.addParam("MenuAddAllToUploadListText", "Tilføj Alle");
	iu.addParam("MenuRefreshText", "Opdater");
 
 
	iu.addParam("MenuArrangeByUnsortedText", "Usorteret");
	iu.addParam("MenuArrangeByNameText", "Navn");
	iu.addParam("MenuArrangeBySizeText", "Størrelse");
	iu.addParam("MenuArrangeByTypeText", "Type");
	iu.addParam("MenuArrangeByModifiedText", "Dato");
	iu.addParam("MenuArrangeByPathText", "Sti");
 
 
	//FileSize Restrictions
	iu.addParam("MaxFileSize", "204800");
	iu.addParam("FileIsTooLargeText", "For Stor");
	iu.addParam("MessageMaxFileSizeExceededText", "Du kan ikke vælge en fil som er over 200 kb.");
 
	//Configure License Keys
	iu.addParam("LicenseKey", "71050-10000-22BAE-DBF8E-E9B47");
 
	//Configure thumbnail settings.
	iu.addParam("UploadThumbnail1FitMode", "Fit");
	iu.addParam("UploadThumbnail1Width", "120");
	iu.addParam("UploadThumbnail1Height", "120");
	iu.addParam("UploadThumbnail1JpegQuality", "60");
	iu.addParam("FileMask", "*.jpg;*.jpeg;*.jpe;*.bmp;*.gif");
	iu.addParam("UploadThumbnail1Watermark",
		"ImageUrl=http://localhost/Images/Site/spam.png;ImageWidth=24;ImageHeight=24;" +
		"Position=TopRight;Opacity=50");
		
		
	iu.addParam("UploadThumbnail3Watermark",
		"ImageUrl=http://localhost/Images/Site/spam.png;ImageWidth=24;ImageHeight=24;" +
		"Position=TopRight;Opacity=50");    
		
	//iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload");
	iu.addParam("DescriptionsReadOnly", "false");
 
	//iu.addParam("UploadThumbnail3FitMode", "Fit");
 
	iu.addParam("UploadThumbnail3FitMode", "ActualSize");
	iu.addParam("UploadSourceFile", "true");
 
 
 
	//Configure URL files are uploaded to.
	iu.addParam("Action", "/ImageUploader/Upload.php?GalleryId=<?=$GalleryId?>");
 
	//Configure URL where to redirect after upload.
	//iu.addParam("RedirectUrl", false);
	iu.addEventListener("AfterUpload", "ImageUploader_AfterUpload");
 
 
	//Tell Image Uploader writer object to generate all necessary HTML code to embed 
	//Image Uploader to the page.
	//document.getElementById('Sub-1-Content').innerHTML = iu.writeHtml();
	iu.writeHtml();
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros