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

Notification

Icon
Error

Options
Go to last post Go to first unread
GeorgeCampos  
#1 Posted : Wednesday, May 30, 2012 8:19:00 PM(UTC)
GeorgeCampos

Rank: Advanced Member

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

Thanks: 8 times
How do I use the Metadata.AdditionalFormName property with ASP Classic?

You just add the <form> element somewhere to your code, add elements to it (<input>, <select>, <textarea> elements are supported), and set its name as a value of this property. Then ActiveX/Java Uploader automatically appends data from this <form> to the request that is sent to the server.

I am stuck. I have tried to do the above and it does not work. Can you send me a code sample?

Thank you,
George
Dmitry.Obukhov  
#2 Posted : Thursday, May 31, 2012 1:31:38 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello George,

You will need to add new form with id or name on the page where Image Uploader hosted. This form may include several input tags. Each input tag should have name attribute. It is needed to get value of input by its name on server side. Please see this snippet code:
Code:

<form id = "form2" name = "form2">
  <p>Type text: </p>
  <input type = "text" name = "text1" value = "Lorem"  />
  <input type = "text" name = "text2" value = "Ipsum"  />
</form>

<script type="text/javascript">
var uploader = $au.uploader({
  id: 'Uploader1',
  width: '100%',
  height: '500px',
  licenseKey: 'XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXXX',
},
// other parameters...

metadata: {
  additionalFormName: 'form2'
}
});
uploader.writeHtml();
</script>


Values of form2 fields will sent along user-selected files in post request.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
thanks 1 user thanked Dmitry.Obukhov for this useful post.
GeorgeCampos on 5/31/2012(UTC)
GeorgeCampos  
#3 Posted : Thursday, May 31, 2012 3:23:01 AM(UTC)
GeorgeCampos

Rank: Advanced Member

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

Thanks: 8 times
Dimitry,

Your code worked exactly right. Thank you for the very clear suggestions.

I just have a little bit left to do. I'll let you know when I get stuck again.

Thanks,
George
Dmitry.Obukhov  
#4 Posted : Thursday, May 31, 2012 6:15:44 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Member
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hi George,

Sure, let me know if you have any problems or questions.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Similar Topics
setAdditionalFormName method in 5.5.6 (Discussions – ActiveX/Java Uploader)
by hyperlinked 10/19/2008 8:43:51 PM(UTC)
Call getAdditionalFormName during Before_Upload event? (Discussions – ActiveX/Java Uploader)
by hyperlinked 7/4/2008 3:26:14 PM(UTC)
HOWTO: Use AddField method instead of AdditionalFormName property (FAQ – ActiveX/Java Uploader)
by Tamila 5/27/2008 9:41:10 PM(UTC)
Java ImageUploader 4.x AdditionalFormName Workaround (FAQ – ActiveX/Java Uploader)
by derek 2/21/2008 11:21:04 PM(UTC)
AdditionalFormName not passing form values to servlet (Discussions – ActiveX/Java Uploader)
by Naquaduh 10/22/2007 11:58:56 PM(UTC)
AdditionalFormName does not work... (Image Uploader)
by ravikiran 9/12/2006 10:38:26 PM(UTC)
AdditionalFormName and FireFox on Mac OSX (Image Uploader)
by Oliver 6/22/2006 8:54:45 PM(UTC)
AdditionalFormName Question (Discussions – ActiveX/Java Uploader)
by superjd 6/11/2004 5:42:00 AM(UTC)
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.