sgkdnay
Technical User
- Aug 4, 2008
- 21
Im driving myself nuts for the past 2 days. Tried everything to fix this, even tweaking, still no go. Might have overlooked a thing or 2...
Originally (both using Element ID (not Name)):
On Parent Windows - Form Called (NewCRM) and TextArea called (NoteAdd)
On Child Windows - Form Called (NewCRMN) and TextArea called (AmendNote)
<script type="text/javascript">
function AddN(Str){
var NoteA2 = document.getElementById("amendnote").value;
document.getElementById("noteadd").value += NoteA2;
}
</script>
To submit, I put <input type=button onclick="AddN('Amend Note');"> It gave me a return of "Amend Note" on the parent (NoteAdd), so i figure it works well.
But I wanted to "copy" the child's TextArea, so I change AddN() in the function screen and onclick="AddN();" in the submit, only this time, it gave me "undefined" in the parent textarea.
What gives? Hope its a minor thing I've overlooked. I do well on VB, but rusty on Javascript.
Thanks
Originally (both using Element ID (not Name)):
On Parent Windows - Form Called (NewCRM) and TextArea called (NoteAdd)
On Child Windows - Form Called (NewCRMN) and TextArea called (AmendNote)
<script type="text/javascript">
function AddN(Str){
var NoteA2 = document.getElementById("amendnote").value;
document.getElementById("noteadd").value += NoteA2;
}
</script>
To submit, I put <input type=button onclick="AddN('Amend Note');"> It gave me a return of "Amend Note" on the parent (NoteAdd), so i figure it works well.
But I wanted to "copy" the child's TextArea, so I change AddN() in the function screen and onclick="AddN();" in the submit, only this time, it gave me "undefined" in the parent textarea.
What gives? Hope its a minor thing I've overlooked. I do well on VB, but rusty on Javascript.
Thanks