Solved

document.formname.textarea.value output

Posted on 2003-12-08
3
489 Views
Last Modified: 2012-05-04
I need to udate a hidden field in another form from a textarea on the same page, when i click refresh the data that comes back is always undefined.
this is basicly what I have sofar...
<script>
<!--
function getplans(id)
{
document.hiddenform.comments.value =      document.insert_asset.comments.value;
}
//-->
</script>

<form name="insert_asset">
<textarea name="comments" cols="20" rows="3" wrap="virtual"><%=Request("comments")%></textarea>
<input type="button" onclick getplans("123")>
</form>
<form name="hiddenform">
<input type="hidden" name="comments">
</form>

how do I get the comments input in hiddenform the same as the comments textarea  in insert_asset? ( I will then be using the hiddenform to post the info to another page.
0
Comment
Question by:Pyro-San
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
Zontar earned 50 total points
ID: 9902674
<script type="text/javascript">
<!--
function getplans(){ document.hiddenform.comments.value = document.insert_asset.comments.value; }
//-->
</script>

<form name="insert_asset">
<textarea name="comments" cols="20" rows="3" wrap="virtual"><%=Request("comments")%></textarea>
<input type="button" onclick="getplans();">
</form>
<form name="hiddenform">
<input type="hidden" name="comments">
</form>
0
 

Author Comment

by:Pyro-San
ID: 9908378
:) sorry silly me cant see past my nose, I figured the problem out and it is not with the code I pasted, it is with a portion of the code I left out on my page. that code that I posted works, thanks anyhow Zontar
0
 
LVL 11

Expert Comment

by:Zontar
ID: 9909186
Fair 'nuff. Ta for the points.

If I had ten cents for every dumb typo or copy/paste error I've made that caused me fits, I'd be nearly as rich as Bill Gates. ;)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now