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

Notification

Icon
Error

Options
Go to last post Go to first unread
hyperlinked  
#1 Posted : Friday, July 4, 2008 3:26:14 PM(UTC)
hyperlinked

Rank: Advanced Member

Groups: Member
Joined: 4/24/2008(UTC)
Posts: 31

I'm passing extra variables using the getAdditionalFormName method like this:

Code:
function fullPageLoad()
{    
	value = getImageUploader("ImageUploader1").getAdditionalFormName();
	getImageUploader("ImageUploader1").setAdditionalFormName("IPBform");
}

My only issue is that some of the fields that are in my form are generated using JavaScript at runtime. Is it possible to do something equivalent to getAdditionalFormName at the Before_Upload event so that any additional fields that have been added dynamically can be captured in the upload?

Eugene Kosmin  
#2 Posted : Sunday, July 6, 2008 12:12:24 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 446

Was thanked: 24 time(s) in 24 post(s)
Hi,

You can try to use AddField method from BeforeUpload event.

Best regards,

Eugene Kosmin.

Aurigma Development Team

hyperlinked  
#3 Posted : Sunday, July 6, 2008 12:54:26 PM(UTC)
hyperlinked

Rank: Advanced Member

Groups: Member
Joined: 4/24/2008(UTC)
Posts: 31

If I use AddField in the BeforeUpload event to add a field called "myField" won't that just overwrite any value that's in the rendered form with a blank or default value for myField that I've assigned when the page was loaded?

I tried this, but didn't get it to work. I can't remember if I just got blank results or something else.

Eugene Kosmin  
#4 Posted : Sunday, July 6, 2008 2:22:18 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 446

Was thanked: 24 time(s) in 24 post(s)
Hi,

AddField method does not affect any forms displayed on your page. It just add some value to upload POST.

Best regards,

Eugene Kosmin.

Aurigma Development Team

Dmitry  
#5 Posted : Sunday, July 6, 2008 2:23:09 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

The idea suggested by Eugene is the following: you need to create BeforeUpload event handler and add POST field using ImageUploader.AddField method. You can choose a field name that you want. You just need to remember this field name and then extract value in the server script.

Sincerely yours,

Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!

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.