Instrumentul de validare JavaScript forma ver 2.5
de Artswork
I must apologize for the fact that I am no longer able to accept email questions about my script where I would afford many hours to helping people properly integrate this module and writing additional items for anyone. This has occurred since the email worms of August 2003 severely compromised my email address displayed here attacked to where I had to deal with thousands of erroneous returned emails a day. I may periodically try to turn it back on so please return or try again after the dust settles. I also must state how people with our skills can ruin and incredible idea such as the internet for communication is disparaging. I have tried for many years returning contributions to others for my success working upon this medium. Thanks to all the interest I have received.
Acest instrument de validare formular puteţi verifica pentru câmpurile obligatorii, întreg, e-mail şi data în formulare. Este uşor portabil pentru toate formularele şi va ajuta la salvarea partea de server resurse de la validare câmp formular şi reîncărcările de pagină. Toate mesajele sunt personalizate în formă ascunse elementul care puteţi selecta, de asemenea, cerinţa de validare. Puteţi amesteca elementul necesare cu oricare dintre celelalte elemente. Acest cod este complet portabil şi poate fi folosit cu orice formă de doar adăugarea elementele ascunse în mod corespunzător şi adăugarea onClick comanda la un buton.

După regulile.
1) Pentru a seta un câmp obligatoriu utilizarea numele de domeniu existente şi adăugaţi o spiridon la începutul câmpului nume şi de a crea un element de ascunse.
EXEMPLU:
<input type="text" name="your_fieldname">
<input type="hidden" name="r_your_fieldname" value="Required error message goes here">

2) Pentru a seta un întreg domeniul utilizaţi numele de domeniu existente şi adăugaţi o iulian la începutul câmpului nume şi de a crea un element de ascunse.
EXEMPLU:
<input type="text" name="your_fieldname">
<input type="hidden" name="i_your_fieldname" value="Integer error message goes here">

3) To set a date field use your existing field name and add an d_ to the beginning of the field name and create a hidden element. This date field only accepts the format MM/DD/YY or M/D/YY.
EXEMPLU:
<input type="text" name="your_fieldname">
<input type="hidden" name="d_your_fieldname" value="Date error message goes here">

4) To validate an email field use your existing field name and add an e_ to the beginning of the field name and create a hidden element.
EXEMPLU:
<input type="text" name="your_fieldname">
<input type="hidden" name="e_your_fieldname" value="The email address format is incorrect">

Initializare de script-ul.
You MUST use the type="button" NOT THE type="submit" for your SUBMIT button, the javascript sends the submit for you.
EXEMPLU:
<input type=button Value="Button Message Here" onclick="check(form,form.elements.length)">



Acest eşantion utilizeaza toate instrumentele de validare trei în combinaţie.

Adresa de e-mail: (required and email validation)
First Name: (required validation)
Nume: (required validation)
Adresa 1: (required validation)
Adresă 2: (no validation)
ce vârstă ai: (required and integer validation)
Ani au fost scripting: (integer validation)
Care este data de azi: (mm/dd/yy) (date validation)
Selectaţi un subiect: (required validation)
Selectaţi un buton Radio: încercarea 1 test 2 Test 3 (required validation)
Selectaţi toate că se aplică: încercarea 1 test 2 Test 3 (required validation on box 1)

© 2004 Artswork