Aurigma Forums
»
Upload Suite
»
Discussions – ActiveX/Java Uploader
»
Call getAdditionalFormName during Before_Upload event?
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?
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 9/19/2006(UTC) Posts: 505
Was thanked: 41 time(s) in 41 post(s)
|
|
Best regards, Eugene Kosmin The Aurigma Development Team
|
|
|
|
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.
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 9/19/2006(UTC) Posts: 505
Was thanked: 41 time(s) in 41 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 The Aurigma Development Team
|
|
|
|
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. |
|
|
|
|
Aurigma Forums
»
Upload Suite
»
Discussions – ActiveX/Java Uploader
»
Call getAdditionalFormName during Before_Upload event?
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.