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
|
|
|
|
Rank: Advanced Member
Groups: 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.
|
1 user thanked Dmitry.Obukhov for this useful post.
|
|
|
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
|
|
|
|
Rank: Advanced Member
Groups: 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.
|
|
|
|
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.