I am having problems with the client side events. Im trying to fire a javascript whenever a key is pressed:
this works for all keys except the backspace key. Is there any workaround for this?
Regards,
Frank
<
script
language
=
"javascript"
type
=
"text/javascript"
>
function tbGroupNamekeypress(sender, eventArgs) {
var c = eventArgs.get_keyCharacter();
var idtbGroupname = '<%=tbGroupName.ClientID%>';
var tbGroupnameValue = encodeURI($('#' + idtbGroupname).val() + c);
$('#divGroupNamePreview').load("/_layouts/checkGroupName.aspx?name=" + tbGroupnameValue + "&t=" + new Date().getTime());
}
</
script
>
<
telerik:RadTextBox
runat
=
"server"
ID
=
"tbGroupName"
Width
=
"79%"
Skin
=
"Metro"
ClientEvents-OnKeyPress
=
"tbGroupNamekeypress"
MaxLength
=
"47"
></
telerik:RadTextBox
>
this works for all keys except the backspace key. Is there any workaround for this?
Regards,
Frank