Welcome Guest Search | Active Topics | Members

Add form field Options
bobbe
Posted: Wednesday, June 29, 2005 1:19:00 AM
Rank: Member
Groups: Member

Joined: 6/29/2005
Posts: 3
Points: 0
On my upload page I have this:

Code:
<script>
function processUpload(){
    //Copy value to hidden field
    document.getElementById("hiddenAuthor").value=document.getElementById("textareaAuthor").value;
    //Upload    
    ImageUploader.Send();
}
</script>

<form ID="Form1" name="Form1">

    <input type="hidden" name="hiddenAuthor" id="Author">

</form>

Author:<br>

<textarea id="textareaAuthor" cols="50" rows="8">Alex</textarea>

<br>

<input type="button" value="Upload" onclick="processUpload();">



But no matter what i do I can not recive the data on the Upload.asp page I tryed with

Code:
strAuthor = objUpload.Form("hiddenAuthor").Value


and 100 other combinations but nothing worked.

WHAT am I missing :)

========================================================
02/14/2008, Fedor
Additional info

You can use also AddField method instead of hidden input fields.
========================================================
bobbe
Posted: Wednesday, June 29, 2005 3:02:00 PM
Rank: Member
Groups: Member

Joined: 6/29/2005
Posts: 3
Points: 0
Ok after some coding I have found the error but not the solution to it.

I have a singel text field with value "euueueueue" but if i do a response.write i can see that there is an extra blank in the name " euueueueue" so what is that and how do I get it right ???
bobbe
Posted: Wednesday, June 29, 2005 3:20:00 PM
Rank: Member
Groups: Member

Joined: 6/29/2005
Posts: 3
Points: 0
Solution:

Code:
Replace(objUpload.Form("test"),vbCrLf,"")


Some how there is an extra linebreak added ??
Users browsing this topic
Guest


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.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.