File: examples/validation_float.html

Recommend this page to a friend!
  Classes of Chara Miteo   JS Form Validator   examples/validation_float.html   Download  
File: examples/validation_float.html
Role: Example script
Content type: text/plain
Description: Examples
Class: JS Form Validator
Validate forms according to many rules
Author: By
Last change:
Date: 10 years ago
Size: 3,448 bytes
 

Contents

Class file image Download
<html> <head> <title>HTML Frames Example - Content</title> <link href="css/style.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="../formvalidator/chars/jsafv_messages.js"></script> <script type="text/javascript" src="../formvalidator/chars/diactric_chars_utf8.js"></script> <script type="text/javascript" src="../formvalidator/form.scripts.js"></script> <script type="text/javascript"> var jsFormValidator = new FormValidator(); </script> <script type='text/javascript' src='js/general.js'></script> </head> <body> <form name="frmTest" action="result.html" method="get" style="padding:5px;"> <table cellSpacing="0" cellPadding="0" border="0" valign="top"> <tbody> <tr> <td align="left">Float #1 <FONT color="#ff0000">*</font> (rfFloat):</td> <td width="8">&nbsp;</td> <td align="left"><input size="18" title="Float #1" type="text" maxLength="25" name="rfFloat" /> <label class='note'>Required field. Type: float. Sub-type: none.</label></td> <td width="8">&nbsp;</td> </tr> <tr> <td align="left">Float #2 (sfFloat):</td> <td width="8">&nbsp;</td> <td align="left"><input size="18" title="Float #2" type="text" maxLength="25" name="sfFloat" /> <label class='note'>Optional field. Type: float. Sub-type: none.</label></td> <td width="8">&nbsp;</td> </tr> <tr> <td align="left">Float #3 (sfsFloat):</td> <td width="8">&nbsp;</td> <td align="left"><input size="18" title="Float #3" type="text" maxLength="25" name="sfsFloat" /> <label class='note'>Optional field. Type: float. Sub-type: signed.</label></td> <td width="8">&nbsp;</td> </tr> <tr> <td align="left">Float #4 (sfuFloat):</td> <td width="8">&nbsp;</td> <td align="left"><input size="18" title="Float #4" type="text" maxLength="25" name="sfuFloat" /> <label class='note'>Optional field. Type: float. Sub-type: unsigned.</label></td> <td width="8">&nbsp;</td> </tr> <tr> <td align="left">Float #5 (sfpFloat):</td> <td width="8">&nbsp;</td> <td align="left"><input size="18" title="Float #5" type="text" maxLength="25" name="sfpFloat" /> <label class='note'>Optional field. Type: float. Sub-type: positive.</label></td> <td width="8">&nbsp;</td> </tr> <tr> <td align="left">Float #6 (sfnFloat):</td> <td width="8">&nbsp;</td> <td align="left"><input size="18" title="Float #6" type="text" maxLength="25" name="sfnFloat" /> <label class='note'>Optional field. Type: float. Sub-type: negative.</label></td> <td width="8">&nbsp;</td> </tr> <tr><td colSpan="7">&nbsp;</td></tr> <tr> <td align="middle" colSpan="7"> <input type="reset" value="Reset" name="butReset" /> &nbsp; <input onclick="return jsFormValidator.onSubmitCheck(document.forms['frmTest'])" type="submit" value="Submit" name="butRegister"> </td> </tr> </tbody> </table> </form> <hr> <h4>Code</h4> <pre> &lt;INPUT type="text" name="rfFloat" title="Float #1" maxLength="25" /&gt; &lt;INPUT type="text" name="sfFloat" title="Float #2" maxLength="25" /&gt; &lt;INPUT type="text" name="sfsFloat" title="Float #3" maxLength="25" /&gt; &lt;INPUT type="text" name="sfuFloat" title="Float #4" maxLength="25" /&gt; &lt;INPUT type="text" name="sfpFloat" title="Float #5" maxLength="25" /&gt; &lt;INPUT type="text" name="sfnFloat" title="Float #6" maxLength="25" /&gt; </pre> </body> </html>