|
|
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.
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.
|
|
| Ø§ÙØªÙÙØ¦Ø© ÙÙØ¨Ø±Ùا٠ج اÙÙØµÙ. | |
|
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)"> ÙØªØ³ØªØ®Ø¯Ù ÙØ°Ù Ø§ÙØ¹ÙÙØ© Ø¬Ù ÙØ¹ Ø£Ø¯ÙØ§Øª Ø§ÙØªØÙÙ Ù Ù ØµØØ© Ø«ÙØ§Ø«Ø© Ù٠ترÙÙØ¨Ø©.
|