<<BACK HOME CNCPT TTRL JS | sf.net/projects/validateformjs | [ U | s | m | ? ] |
rqd dec eml INT len mcr bss trm sif | All Concepts | |
frm txt pwd txa rdo sl1 chk slm | All Object Types |
validate_form.js
sMsgTxtInt
Ensures a string value is a valid integer,optionally within a range. | Summary |
sMsgTxtInt |
All Attributes |
txt pwd txa rdo sl1 chk slm |
Interactive Example Code |
Higher [ trm rqd len dec eml INT sif mcr bss ] Lower |
Precedence |
[TOP] sMsgTxtInt attribute: sMsgTxtInt |
||||||||||
Value Purpose | The error message presented to the user when the value is not a valid integer,or is out of range. | |||||||||
Value Rules | Must be a string at least one character in length. | |||||||||
Object Compatibility |
text , password |
|||||||||
Attribute Compatibility |
sMsgRequired , bsNoBadSubStrs , asBadSubStrs , sMsgBadSubStr , bsDontTrimSpaces , bsTrimSpaces | |||||||||
Special Strings |
|
|||||||||
Sub-Range |
|
sMsgTxtInt
NotesSee the notes for sMsgTxtInt
, all of which hold true for this concept. This includes precision, which is also an issue on the left side of the integer point.
TOP
rqd dec eml INT len mcr bss trm sif |
|
VF-Config Snippet | f_orm.fav_int.sMsgTxtInt = 'Your favorite integer must be an *integer*, and between ~RANGE_MIN~ and ~RANGE_MAX~, inclusive.'; |
Example Element | <INPUT TYPE="text" NAME="fav_int"> |
The form | Change the vf-configuration |
TOP
rqd dec eml INT len mcr bss trm sif |
|
VF-Config Snippet | f_orm.secret_int.sMsgTxtInt = 'Your secret integer (shhhhh) must be an *integer*, and between ~RANGE_MIN~ and ~RANGE_MAX~, inclusive.'; |
Example Element | <INPUT TYPE="text" NAME="secret_int"> |
The form | Change the vf-configuration |
Copyright (C) 2003-2005, Jeff Epstein. All rights reserved.