N
neoswf
hi all
i have this function:
--
function userNameValidChars(e) {
if (!e) var e = window.event;
if (e.keyCode) key = e.keyCode;
else if (e.which) key = e.which;
if(!(key==37) && !(key==39))
return false;
return true;
}
<input type="text" onkeypress="return userNameValidChars(event)" />
--
I'm trying to block chars that been typed into this input element. but
i have this problem:
FF force u to define which CHARS are going to be typed inside this
input element.
IE doesn't force u. ffff does.
so i defined Backspace, Horizontal tab and left & right arrows
those two links r keyCode 37 & 39 (according to FF).
but those two r also ' & %.
my question is: what is the ASCII code for left and right arrows?
how can i allow FF to use left&right arrows in inputs i use this code
on?
Thanks a lot, NeoSwf
http://www.bbsinc.com/iso8859.html
i have this function:
--
function userNameValidChars(e) {
if (!e) var e = window.event;
if (e.keyCode) key = e.keyCode;
else if (e.which) key = e.which;
if(!(key==37) && !(key==39))
return false;
return true;
}
<input type="text" onkeypress="return userNameValidChars(event)" />
--
I'm trying to block chars that been typed into this input element. but
i have this problem:
FF force u to define which CHARS are going to be typed inside this
input element.
IE doesn't force u. ffff does.
so i defined Backspace, Horizontal tab and left & right arrows
those two links r keyCode 37 & 39 (according to FF).
but those two r also ' & %.
my question is: what is the ASCII code for left and right arrows?
how can i allow FF to use left&right arrows in inputs i use this code
on?
Thanks a lot, NeoSwf
http://www.bbsinc.com/iso8859.html