...

View Full Version : change the text inside a texterea from a function



gil_bar
07-01-2003, 11:22 PM
Hi !
I have a web page that contains a form. The form includes a texterea and a flash object describing a keyboard.
Each button on the keyboard is in a matter of fact a <a href> tag.
I can not chabge the object...:(
Each button on the keyboard sends a number that represents a letter.
What I need to do, and have no idea how to do it, is:
Creat a function that recives the form and the correspanding number, checks the number and add the correct letter to the texterea in the form.
Really need you help... :rolleyes: :rolleyes: :rolleyes:
Gil:o

beetle
07-01-2003, 11:44 PM
You "need" to? This sounds like schoolwork -- which in itself is no big deal. Just let us know if this is for school or not so we can stay within the guidlines of this forum when helping you.

gil_bar
07-01-2003, 11:53 PM
hi beetle.
I run a small website for a special volunteers in the israeli police.
Soe of us uses a computer that is not configured to write in hebrew.
The others gets annoyed...
This is why I need to...
U can visit the site at http://yagam.webhop.net
Although I don't think Hebrew is your language;)

I really hope U can help with the subject.
I'm new to javascript.
thanks.
Gil

Kor
07-02-2003, 11:44 AM
about capture the key event, see:

http://www.iboost.com/build/programming/js/tutorial/888.htm
http://www.howtocreate.co.uk/tutorials/index.php?tut=0&part=17

Beware that, as far as I know, the key event capture are different in IE and NS...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum