![]() |
|
| to get the code of the key pressed |
| to get the code of the key pressed |
|
Moderator ![]()
|
See if this code is what you are after. I would guess you just need to add a if statement to check the chars are between ascii 32 and 127 if that's what you want. i.e NOT the extended ascii codes.
|
|||||||||||||||||
|
|
||||||||||||||||||
| to get the code of the key pressed |
|
Helo sir,
Thank you very much for replying my question.. That is what exactly i wanted. There is some devition from what u have given... You are printing the output in different location using <DIV> tag. But my requirement is i need the out put on the same text box... So I tried that, Its coming but even the character pressed is also displaying which i dont want. How can i solve that. Now i'll tell u why i need this. I am working on some web based project there they will have many text lines and text boxes. I want to put that function to all those. In that function instead of printing the ascii code i'll print the unicode of my language as and when the key is pressed. So that the user can type the text directly in their regional language with out the help of soft keyboard. Hope u'll guide me in the entire project Thanks a lot Deepu |
|||||||||||||
|
|
||||||||||||||
| to get the code of the key pressed |
|
Moderator ![]()
|
This displays one keypress only:
|
|||||||||||||||||
|
|
||||||||||||||||||
| to get the code of the key pressed |
|
Moderator ![]()
|
This displays one keypress after another:
|
|||||||||||||||||
|
|
||||||||||||||||||
| to get the code of the key pressed |
|
Helo,
Thanks a lot.... Can u please tell me, how to display the unicode instead of ascii. I'll tell u what i have done. I have kept an array, in which i have stored the unicode values as strings. When ever a key is pressed, it should refer that array and print the corresponding values.
My problem is, instead of our language character it is printing the value as it is.(&# 3221;) I have set the correct font to the textarea object. please help me thanks a lot once again |
|||||||||||||||
|
|
||||||||||||||||
| to get the code of the key pressed |
|
||
|
|

