Click to See Complete Forum and Search --> : An imposible task?


Andy62
12-02-2002, 12:25 PM
Hi all...

I'm really new to this HTML stuff so please be gentle with me!

What I'd like to do is this:

Using HTML only. Is there a way to convert a list of alpha numeric characters (over 1000 of them) into a clickable list, so that when a character is clicked it is copied into a text box?

Or am I asking too much?

Any help or pointers would be greatly appreciated.

Many thanks in advance for any help offered.

Rick Bull
12-02-2002, 01:26 PM
Something like this?


<script type="text/javascript"><!--
function addToList() {
if (document.getElementById) {
var selectElement = document.getElementById('char_list');
document.getElementById('output').value +=
selectElement.options[selectElement.selectedIndex].value;
}
}
//--></script>
<form action="..."><p>
<select size="10" id="char_list" onchange="addToList();">
<option value="abc">abc</option>
<option value="def">def</option>
<option value="ghi">ghi</option>
<option value="jkl">jkl</option>
<option value="mno">mno</option>
</select>
<textarea id="output"></textarea>
</p></form>

jamal
12-02-2002, 07:55 PM
Hey Andy,
as the post above is trying to imply, I'm afraid you cannot do it with JUST html, unless you do it manually 1 by 1.
You can do it with client-side scripting like JavaScript, or server-side scripting like php!