Writing keystroke response

Posted by Mashvik under Regular Expressions on 12/15/2010 | Points: 10 | Views : 1227 | Status : [Member] | Replies : 1
I have an ASP.NEt application where there are several text input boxes. Depending on the device (particularly Blackberry), I need to show different character in the text box than actually typed. For example when user types w in the text box, it needs to show 1. Thus wesx will show up as 1234. I need to do this in Javascript so that there is no round trip to the server.

Please help.




Responses

Posted by: T.saravanan on: 12/16/2010 [Member] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Using onKeyup event to call the javascript and give your condition in this script.

For your reference...http://www.geekpedia.com/tutorial138_Get-key-press-event-using-JavaScript.html
http://www.go4answers.com/Example/onkeyup-uppercase-91631.aspx

Cheers :)


Thanks,
T.Saravanan

Mashvik, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response