
More JavaScript Forms
Accept Terms | Agree Before Entry | All Lower Case | All Upper Case | Auto Currency | Auto Drop Down | Auto Month | Auto Tab | Auto Year List | Basic Validation | Block Key Press | Check Form | Check For Spaces | Checkbox Counter | Checkbox Text | Checkbox Changer | Add Commas | Copy Form Fields | Copy Name Field | Country Select List | Currency Format | Select A Day | Decimals Allowed | Disable Submit | Email Domain WHOIS | Basic Email Validation | Email Validation | Expanding Textbox | Extended Characters | Extract Email | Field Explanation | File Open | Form Focus | Form Swapper | Form Order Totals | Form Target Formatting | Format Input Case | Format Date | Preview HTML | Ignore Spaces | First Letter Uppercase | Items Popup List | Remember Items | Limit Textarea | Limit checkboxes | Textarea Line Wrap | List Chooser | List Organizer | Locked Textbox | Mail Pick Subject | Mailing List | Max Text Entry | Memory Cells | Money Filter | Multiple Mailer List | No Duplicates Entries | No Blank Entry | No HTML Entries | Only One Field | Customized Popup | Option Search | Pass Menu Frames | Pass Textbox Frames | Password Verification | Quantity Totals | Radio Totals | Convert Returns | Replace Characters | Required Fields | Search Box | Copy Selection Box | Selection Order | Select One | Select All | Sentence Caps | Smart Pulldown Menu | Dirty Words Filter | All Spaces To Plus | Strip Characters | Submit With Text Link | Submit Once | Submit Changer | Tab Key Emulation | Text Cycle | Text Reverse | Form Time Limit | Trim Leading Spaces | Trim Trailing Spaces | True Date Selected | Site Upload Filter | Removes Characters | Properly Filled | Valid Credit Card | Date Validated | External JS | Validate Guestbook | Verify IP address | Password Verify | Invalid submissions | Social Security Number | Verifies Valid Time | Invalid Zip Code | Validate Dates | Receive Feedback | Textarea Word Count | Word Character Count | Zip To State
Description
Using an external JavaScript file, simply define the rules for how each field should be validated and you're set. Piece of cake! And since it is it's own .js file, it's easy to use the code on every page of your site. Currently only validates text, numbers and e-mail addresses. ...View A Script Demo
Using an external JavaScript file, simply define the rules for how each field should be validated and you're set. Piece of cake! And since it is it's own .js file, it's easy to use the code on every page of your site. Currently only validates text, numbers and e-mail addresses. ...View A Script Demo
Do you find it confusing setting up these script?
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
Java Scripts Magic can do all the hard work for you all At The Touch Of A Button.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="TextPad 4.4">
<LINK href="general.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="validation.js"></script>
<!-- Define the validation rules for each field -->
<!-- Rules explained in more detail at author's site: -->
<!-- http://www.hagedesign.dk/scripts/js/validation/ -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Jacob Hage ( This e-mail address is being protected from spambots. You need JavaScript enabled to view it ) -->
<!-- Web Site: http://www.hagedesign.dk -->
<!-- Begin
function init() {
define('field1', 'string', 'Apple');
define('field2', 'string', 'Peach', 4);
define('field3', 'string', 'Cherry', null, 8);
define('field4', 'string', 'Melon', 4, 8);
define('field5', 'num', 'Banana');
define('field6', 'num', 'Grape', 3);
define('field7', 'num', 'Carot', null, 6);
define('field8', 'num', 'Sugar', 4, 6);
define('field9', 'email', 'Fruit');
}
// End -->
</script>
</HEAD>
<BODY Background=../graphics/grayback.jpg OnLoad="init()">
<center><BR><BR>
This requires the file <b>Validation.js</b> included in this directory.<BR>
<table><tr><td>
<form name=testForm>
apple:<br><input type=text name=field1 size=16> Required<br>
peach:<br><input type=text name=field2 size=16> Required - minimum 4 characters<br>
cherry:<br><input type=text name=field3 size=16> Required - maximum 8 characters<br>
melon:<br><input type=text name=field4 size=16> Required - minimum 4 characters - maximum 8 characters<br>
banana:<br><input type=text name=field5 size=16> Required - Must be a numeric character<br>
grape:<br><input type=text name=field6 size=16> Required - Must be a numeric character - minimum 3 digits<br>
carot:<br><input type=text name=field7 size=16> Required - Must be a numeric character - maximum 6 digits<br>
sugar:<br><input type=text name=field8 size=16> Required - Must be a numeric character - minimum 4 digits - maximum 6 digits<br>
fruit:<br><input type=text name=field9 size=16> Required - Valid e-mail<br>
candy:<br><input type=text name=field10 size=16> Not required<br>
<br>
<input type=submit name=submit onClick="validate();return returnVal;" value="Test fields">
</form>
</td></tr></table>
</center>
</BODY>
</HTML>
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="TextPad 4.4">
<LINK href="general.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="validation.js"></script>
<!-- Define the validation rules for each field -->
<!-- Rules explained in more detail at author's site: -->
<!-- http://www.hagedesign.dk/scripts/js/validation/ -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Jacob Hage ( This e-mail address is being protected from spambots. You need JavaScript enabled to view it ) -->
<!-- Web Site: http://www.hagedesign.dk -->
<!-- Begin
function init() {
define('field1', 'string', 'Apple');
define('field2', 'string', 'Peach', 4);
define('field3', 'string', 'Cherry', null, 8);
define('field4', 'string', 'Melon', 4, 8);
define('field5', 'num', 'Banana');
define('field6', 'num', 'Grape', 3);
define('field7', 'num', 'Carot', null, 6);
define('field8', 'num', 'Sugar', 4, 6);
define('field9', 'email', 'Fruit');
}
// End -->
</script>
</HEAD>
<BODY Background=../graphics/grayback.jpg OnLoad="init()">
<center><BR><BR>
This requires the file <b>Validation.js</b> included in this directory.<BR>
<table><tr><td>
<form name=testForm>
apple:<br><input type=text name=field1 size=16> Required<br>
peach:<br><input type=text name=field2 size=16> Required - minimum 4 characters<br>
cherry:<br><input type=text name=field3 size=16> Required - maximum 8 characters<br>
melon:<br><input type=text name=field4 size=16> Required - minimum 4 characters - maximum 8 characters<br>
banana:<br><input type=text name=field5 size=16> Required - Must be a numeric character<br>
grape:<br><input type=text name=field6 size=16> Required - Must be a numeric character - minimum 3 digits<br>
carot:<br><input type=text name=field7 size=16> Required - Must be a numeric character - maximum 6 digits<br>
sugar:<br><input type=text name=field8 size=16> Required - Must be a numeric character - minimum 4 digits - maximum 6 digits<br>
fruit:<br><input type=text name=field9 size=16> Required - Valid e-mail<br>
candy:<br><input type=text name=field10 size=16> Not required<br>
<br>
<input type=submit name=submit onClick="validate();return returnVal;" value="Test fields">
</form>
</td></tr></table>
</center>
</BODY>
</HTML>
If you have a Business Proposal that you think may be of interest to us here at Best Download Sites please contact us to discuss the matter in further detail

