Pular Para O Proximo Campo Do Formulario
#1 Dionatan Boeger
Posted 24/11/2003, 12:57
Tenho um formulario, com dois campos..
O Primeiro CODIGO e o segundo SENHA..
O Campo codigo vai ser preenchido por um LEITOR..
Ele le o codigo de barras de uma carteirinha, joga os numeros e envia um ENTER..
Entao, toda vez que o leitor, le, ele coloca o codigo e envia o formulario....
Tem como fazer, com que o enter funcione como TAB??
No VB eh facil, mas aqui eu nao sei Conto com vcs.
Flw pessoal...
#2
Posted 25/11/2003, 07:53
<HEAD>
<script LANGUAGE="JavaScript">
<!--
var isNN = (navigator.appName.indexOf("Netscape")!=-1);
function autoTab(input,len, e) {
var keyCode = (isNN) ? e.which : e.keyCode;
var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
if(input.value.length >= len && !containsElement(filter,keyCode)) {
input.value = input.value.slice(0, len);
input.form[(getIndex(input)+1) % input.form.length].focus();
}
function containsElement(arr, ele) {
var found = false, index = 0;
while(!found && index < arr.length)
if(arr[index] == ele)
found = true;
else
index++;
return found;
}
function getIndex(input) {
var index = -1, i = 0, found = false;
while (i < input.form.length && index == -1)
if (input.form[i] == input)index = i;
else i++;
return index;
}
return true;
}
//-->
</script>
</HEAD>
<BODY>
<center>
<form>
<table>
<tr>
<td>Phone Number : <br>
1 - (
<small><input onKeyUp="return autoTab(this, 3, event);" size="4" maxlength="3"></small>) -
<small><input onKeyUp="return autoTab(this, 3, event);" size="4" maxlength="3"></small> -
<small><input onKeyUp="return autoTab(this, 4, event);" size="5" maxlength="4"></small>
</td>
</tr>
<tr>
<td>Social Security Number : <br>
<small><input onKeyUp="return autoTab(this, 3, event);" size="4" maxlength="3"></small> -
<small><input onKeyUp="return autoTab(this, 2, event);" size="3" maxlength="2"></small> -
<small><input onKeyUp="return autoTab(this, 4, event);" size="5" maxlength="4"></small>
</td>
</tr>
</table>
</form>
</center>
Peguei esse script no site JavaScript Source (http://www.javascriptsource.com).
WITHOUT A NICK
- HaroNism likes this
#3
Posted 12/10/2017, 13:11
Priligy Verschreiben Lassen Acheter Du Xenical Moins Cher generic viagra Acquistare Levitra On Line
#4
Posted 13/10/2017, 02:57
Priligy Dapoxetina Italia Prednisone Canadian Pharmnacy Peppermint generic levitra for sale in us Que Es Levitra Y Para Que Sirve
Buy Fluconazole Without A Prescription Medicines Without A Prescriptions viagra Canadian Pharmacuti Prezzo Cialis E Levitra Vagra For Over 60years Old
#5
Posted 28/10/2017, 10:18
Viagra Zollfrei viagra Cialis Generique Vrai Ou Faux Healty Man
Antibiotics To Take With Amoxicillin Allergy Cialis Levitra Y Viagra cialis buy online Zenegra 100 Amoxicillin For Sinus Infection Buying Antibiotics On The Internet
#7
Posted 28/10/2017, 21:48
#8
Posted 29/10/2017, 00:23
Come Il Viagra Generic Cialis Los Vegas viagra Order Slimex Online Use Propecia On Eyebrows
Amoxicillin And Sore Tooth viagra Online Us Pharmacy Discount Generic Cialis
Amoxil Pediatrique Gouttes Acheter Viagra Vente cialis price Comment Rester Eriger Longer Amoxicillin And Tanning Ce Que Priligy Generique
Kamagra Sintomas Where Does Propecia Grow Hair Precio De Propecia Espana viagra online prescription Acquisto Kamagra Oral Jelly Mail Order Elocon
Cialis Muestra Gratis cialis Como Usar Propecia
#9
Posted 13/11/2017, 06:38
Viagra Con Cerveza Zithromax Solution Dosage Amoxicillin S Side Effects buy viagra online Keflex Pregancy Safe Acheter Du Clomid En Bus
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)