Javascript Form Validation Tool الإصدار 2.5
by Artswork
يجب أن اعتذر لكون أنا لم تعد قادرة على قبول البريد الإلكتروني أسئلة حول البرنامج النصي بي حيث كنت تحمل ساعات عديدة لمساعدة الناس بشكل صحيح في دمج هذه الوحدة النمطية و كتابة عناصر إضافية لأي شخص. وقد حدث هذا منذ أرسل الديدان من آب/أغسطس 2003 لخطر شديد بلدي عنوان البريد الإلكتروني المعروض هاجم هنا بحيث اضطررت إلى التعامل مع الآلاف من الخاطئة إرجاع رسائل البريد الإلكتروني يوميا. قد أحاول دورياً تشغيله مرة أخرى حتى الرجاء العودة، أو حاول مرة أخرى بعد أن ينقشع الغبار. كما يجب أن الدولة كيف يمكن أن تدمر الشعب مع مهاراتنا وفكرة لا يصدق مثل شبكة الإنترنت للاتصالات هو ذم. لقد حاولت لسنوات عديدة إعادة الاشتراكات إلى الآخرين لنجاحي في العمل بناء على هذا المتوسطة. وبفضل كل الاهتمام الذي قد حصل.
This form validation tool can check for required, integer, email and date fields in your forms. It is easily portable to all your forms and will help save server side resources from form field validation and page reloads. All the messages are customized in the hidden form element where you also select the validation requirement. You can mix the required element with any of the other elements. This code is completely portable and can be used with any form by just adding your hidden elements appropriately and adding the onClick command to a button.

القواعد التالية.
1) To set a required field use your existing field name and add an r_ to the beginning of the field name and create a hidden element.
على سبيل المثال:
<input type="text" name="your_fieldname">
<input type="hidden" name="r_your_fieldname" value="Required error message goes here">

2) To set an integer field use your existing field name and add an i_ to the beginning of the field name and create a hidden element.
على سبيل المثال:
<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.
على سبيل المثال:
<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.
على سبيل المثال:
<input type="text" name="your_fieldname">
<input type="hidden" name="e_your_fieldname" value="The email address format is incorrect">

التهيئة للبرنامج النصي.
You MUST use the type="button" NOT THE type="submit" for your SUBMIT button, the javascript sends the submit for you.
على سبيل المثال:
<input type=button Value="Button Message Here" onclick="check(form,form.elements.length)">



وتستخدم هذه العينة جميع أدوات التحقق من صحة ثلاثة في تركيبة.

Email Address: (required and email validation)
First Name: (required validation)
Last Name: (required validation)
العنوان 1: (required validation)
Address 2: (no validation)
كم تبلغ من العمر: (required and integer validation)
سنوات وقد تم لك البرمجة: (integer validation)
ما هو تاريخ اليوم: (mm/dd/yy) (date validation)
اختر موضوعا: (required validation)
Select a Radio Button: اختبار 1 test 2 اختبار 3 (required validation)
حدد "تطبيق" كافة على أن: اختبار 1 test 2 اختبار 3 (required validation on box 1)

© 2004 Artswork