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

Notification

Icon
Error

Options
Go to last post Go to first unread
Hacim  
#1 Posted : Thursday, August 10, 2006 10:49:07 AM(UTC)
Hacim

Rank: Member

Groups: Member
Joined: 6/21/2006(UTC)
Posts: 15

Hello, Firstly i would like to say that this forum has been very helpful so far in working with the Image uploader Photo Order sample. Thank you I have a question... When a image is selected and dragged into the upload section i want to be able to set the description to have a default of 1... Im not sure how to change the code to do this? Thank you for your time
Alex Makhov  
#2 Posted : Thursday, August 10, 2006 1:09:11 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,
Quote:
Firstly i would like to say that this forum has been very helpful so far in working with the Image uploader Photo Order sample
Thank you :) Here is the code:
Code:
var oldUploadFileCount = 0;

function ImageUploader_UploadFileCountChange() {
	var imageUploader1=getImageUploader("ImageUploader1");
	if (imageUploader1) {
		var newUploadFileCount = imageUploader1.getUploadFileCount();
		for (var i = oldUploadFileCount + 1; i <= newUploadFileCount; i++){
			imageUploader1.setUploadFileDescription(i, "1");
		}
		oldUploadFileCount = newUploadFileCount;
	}
}

…
var iu = new ImageUploaderWriter("ImageUploader1", 1000, 700);
…
iu.addEventListener("UploadFileCountChange", "ImageUploader_UploadFileCountChange");

Edited by user Monday, February 18, 2008 7:43:43 PM(UTC)  | Reason: Not specified

Sincerely yours, Alex Makhov UserPostedImage Follow Aurigma on Twitter!
Hacim  
#3 Posted : Thursday, August 10, 2006 2:14:40 PM(UTC)
Hacim

Rank: Member

Groups: Member
Joined: 6/21/2006(UTC)
Posts: 15

Worked Perfect!!! Thanks Alex
Users browsing this topic
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.