<<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: sMsgTxtDec

Ensures a string value is a valid decimal,optionally within a range. Summary
sMsgTxtDec 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]   sMsgTxtDec attribute: sMsgTxtDec        
Value Purpose The error message presented to the user when the value is not a valid decimal,or is out of range.
Value Rules Must be a string at least one character in length.
Object Compatibility text,  password
Attribute Compatibility sMsgRequired,  sMsgBadLength,  bsNoBadSubStrs,  asBadSubStrs,  sMsgBadSubStr,  bsDontTrimSpaces,  bsTrimSpaces
Special Strings
  • ~RANGE_MIN~: Translated to dDecMin
  • ~RANGE_MAX~: Translated to dDecMax
Sub-Range
Name Purpose Rules
dDecMin The minimum allowable value Optional. When provided, must be a decimal. When dDecMax is also provided, this must be less-than-or-equal-to it.
dDecMax The maximum allowable value Optional. When provided, must be a decimal. When dDecMin is also provided, this must be greater-than-or-equal-to it.

Other sMsgTxtDec Notes










TOP     rqd DEC eml int len mcr bss trm sif
<<BACK  TXT pwd txa rdo sl1 chk slm
Object Type Concept
text sMsgTxtDec

VF-Config Snippet f_orm.fav_dec.sMsgTxtDec = 'Your favorite decimal must be an *decimal*, and between ~RANGE_MIN~ and ~RANGE_MAX~, inclusive.'
Example Element <INPUT TYPE="text" NAME="fav_dec">

The form Change the vf-configuration
What is your favorite decimal?
sMsgRequired
   dDecMin
      
      
   dDecMax
      
      
[[     [ 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 sMsgTxtDec

VF-Config Snippet f_orm.secret_dec.sMsgTxtDec = 'Your secret decimal (shhhhh) must be an *decimal*, and between ~RANGE_MIN~ and ~RANGE_MAX~, inclusive.';
Example Element <INPUT TYPE="text" NAME="secret_dec">

The form Change the vf-configuration
What is your secret decimal (shhhh)?
sMsgRequired
   dDecMin
      
      
   dDecMax
      
      
[[     [ CIBC CRSH ]   DBG     ]]




































SourceForge.net Logo

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