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

Notification

Icon
Error

Options
Go to last post Go to first unread
deucecactus  
#1 Posted : Friday, June 8, 2007 1:26:13 AM(UTC)
deucecactus

Rank: Member

Groups: Member
Joined: 4/4/2007(UTC)
Posts: 6

Good afternoon:

I'm having some difficulties and hacking at it doesn't seem to be doing anything for me.

Here's the scenario,

I've got a news article application where one of our employees can write the news article along with tags, titles, synopsis and more. Also, for our rss feeds and our website, we'd like the user to pick a photo that can be shrunk and attached to this news article.

So, I've tried to place the ImageUploader code in the form along with the other elements I've described above. I'd like the photos to send when the user clicks the submit button.

I have a javascript that will validate to make sure a title has been typed and etc.. I've placed the ('ImageUploader').send() bit in there when it's time to submit.

Problem is, a window pops up that says something to the effect of Image Upload cancelled and it locks my browser up... won't let me close the notification window.

Code:
<script type="text/javascript" src="/_TOOLS/ImageUploader/iuembed.js"></script>

				<script type="text/javascript">

					var iu = new ImageUploaderWriter("ImageUploader", 550, 100);
					
					// If you do not want to use ActiveX or Java version, set the appropriate
					// property to false.
					iu.activeXControlEnabled = true;
					iu.javaAppletEnabled = true;
					
					iu.activeXControlCodeBase 	= "/_TOOLS/ImageUploader/ImageUploader4.cab";
					iu.javaAppletCodeBase		= "/_TOOLS/ImageUploader/";
					iu.addParam("LicenseKey", "xxxx-xxxx-xxxx-xxxx;xxxx-xxxx-xxxx-xxxx");
					
					iu.addParam("PaneLayout", "OnePane");
					
					//For the folder pane
					iu.addParam("FolderView", "details");
					//For the upload pane
					iu.addParam("UploadView", "details");
					
					// Config Files
					iu.addParam("FileMask", "*.jpg;*.jpeg;*.gif;*.tif;");
					iu.addParam("UploadSourceFile", "false");
					
					// Config Thumbnails
					iu.addParam("UploadThumbnail1FitMode", "Fit");
					iu.addParam("UploadThumbnail1Width", "100");
					iu.addParam("UploadThumbnail1Height", "100");
					iu.addParam("UploadThumbnail1JpegQuality", "75");
					
					iu.addParam("ShowButtons", "false");
					
					//...Other params and event handlers
					iu.addParam("MaxFileCount", "1");
					
					iu.writeHtml();
				</script>


This is the code that'll create the ImageUploader

Is there anything I should be aware of? I've tried to 'AdditionalFormName'... but that doesn't seem to work. I've also tried some combinations of adding form elements... but that's not seeming to work either...

Thanks for your help...

Aaron

Edited by user Friday, February 22, 2008 5:20:36 PM(UTC)  | Reason: Not specified

Alex Makhov  
#2 Posted : Friday, June 15, 2007 8:42:26 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

Hello Aaron,

Sorry for the long delay.
Try to move Image Uploader outside of the form. Some time ago there were some problems because of this. Also I would like to know if the problem occurs on both versions of Image Uploader or only on one of them (ActiveX or Java)?
Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Guest
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.