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

Notification

Icon
Error

Options
Go to last post Go to first unread
bobbe  
#1 Posted : Tuesday, June 28, 2005 5:19:00 PM(UTC)
bobbe

Rank: Member

Groups: Member
Joined: 6/28/2005(UTC)
Posts: 3

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. ========================================================

Edited by user Thursday, February 14, 2008 7:13:01 PM(UTC)  | Reason: Not specified

bobbe  
#2 Posted : Wednesday, June 29, 2005 7:02:00 AM(UTC)
bobbe

Rank: Member

Groups: Member
Joined: 6/28/2005(UTC)
Posts: 3

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  
#3 Posted : Wednesday, June 29, 2005 7:20:00 AM(UTC)
bobbe

Rank: Member

Groups: Member
Joined: 6/28/2005(UTC)
Posts: 3

Solution:
Code:
Replace(objUpload.Form("test"),vbCrLf,"")
Some how there is an extra linebreak added ??

Edited by user Sunday, December 23, 2007 5:57:25 PM(UTC)  | Reason: Not specified

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.