12
I’m developing a small PHP system where the user just passes a badge and presses enter. Somehow I need to make this enter be automatic after a few seconds (the button is already in Focus after filling the field) or when passing the badge again (only numbers) the system understands as a "enter". It is possible?
I’m trying to adapt this function that has blocked all letters for this case:
function SomenteNumero(e){
var tecla = (window.event) ? event.keyCode : e.which;
if((tecla > 47 && tecla < 58))
return true;
else{
if (tecla == 8 || tecla == 0)
return true;
else
return false;
}
}
Have you tried something with Javascript? You can post what you tried?
– brazilianldsjaguar
My company works with cards too. Your read machine does not simulate a enter automatically?
– Wallace Maxters
I’m trying to adapt this function that blocked all letters for this case: Function Somentenumero(e){ var key=(window.Event)? Event.keycode:e. which; if((key>47 && key<58)) Return true; Else{ if (key==8 || key==0) Return true; Else Return false; } }
– Diego
No Wallace, this reader is a Nonus Homebank for billet that we adapted for card reading....
– Diego