<<BACK    HOME    CNCPT    TTRL    JSsf.net/projects/validateformjs[ U | s | m | ? ]
   rqd dec eml INT len mcr bss trm sifAll Concepts
   frm txt pwd txa rdo sl1 chk slmAll Object Types

validate_form.js
Concept: 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
  • ~RANGE_MIN~: Translated to iMinLength
  • ~RANGE_MAX~: Translated to iMaxLength
Sub-Range
Name Purpose Rules
iIntMin The minimum allowable value Optional. When provided, must be a integer. When iIntMax is also provided, this must be less-than-or-equal-to it.
iIntMax The maximum allowable value Optional. When provided, must be a integer. When iIntMin is also provided, this must be greater-than-or-equal-to it.

Other sMsgTxtInt Notes

See 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
<<BACK  TXT pwd txa rdo sl1 chk slm
Object Type Concept
text sMsgTxtInt

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
What is your favorite integer?
sMsgRequired
   iIntMin
      
      
   iIntMax
      
      
[[     [ CIBC CRSH ]   DBG     ]]



TOP     rqd dec eml INT len mcr bss trm sif
<<BACK  txt PWD txa rdo sl1 chk slm
Object Type Concept
password sMsgTxtInt

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
What is your secret integer (shhhh)?
sMsgRequired
   iIntMin
      
      
   iIntMax
      
      
[[     [ CIBC CRSH ]   DBG     ]]





































SourceForge.net Logo

Copyright (C) 2003-2005, Jeff Epstein.   All rights reserved.