View Full Version : Text transfer

01-14-2004, 04:13 PM
I am trying to help students with examination questions. The idea is to break the question down into parts (say 5). They are given clues to answer each part with subquestions. As they type up and complete the first part I want a button to transfer the text (I think from a textarea) to a visible holding bay at the bottom of the screen (another text area) As subsequent parts are completed they are added to Part One at the bottom of the screen, in order, until all five parts make a completed examination questions and can be printed.

I hope I have done all this correctly as I have never tried a service like this before. Thank-you.


01-14-2004, 09:17 PM
If I understood you correctly, you have a textarea where the students type the subanswers. When they click OK, you want to copy this text to another textarea and then clean the first to prepare it for the next subanswer.

Do you have some code to show us? Maybe it will clear a little...

01-14-2004, 09:44 PM
Hi there Nick102,

Try this.....

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta content="mshtml 6.00.2800.1264" name="generator" />
<title>Exam Paper</title>
<style type="text/css">
div#border{width:90%;border:solid 1px #000000;background-color:#ffffff;padding:2%;margin:auto;}
<script type="text/javascript">
var id=new Array('a','b','c','d','e','f')
var i=0;
function Exam()
var choice= document.getElementById("text").value;
<div id="border">
<form action="#">
<textarea id="text"cols=""rows=""></textarea>
<input type="button" value="process" onclick="Exam();"/>
<input type="reset" />
<input type="button" value="clear for printing" onclick="this.form.style.visibility='hidden'"/>
<div id="a"></div>
<div id="b"></div>
<div id="c"></div>
<div id="d"></div>
<div id="e"></div>
This script has been tested in IE 6, Mozilla 1.5, Netscape 7.1 and Opera 7.0