Table of contents
- 1 Constructors
- 2 Properties
- 3 Methods
- 3.1 BuildScriptInclude(String baseDir, String js, String extension) : String
- 3.2 SetSubmitOptions(IDictionary parameters)
- 3.3 SetSubmitOptions(Boolean confirm, Boolean disable, Boolean groupError, Int32 errorMode)
- 3.4 InstallScripts() : String
- 3.5 InstallWithCustomMsg(String scriptFilePath) : String
- 3.6 InstallScripts(String baseDir) : String
- 3.7 InstallScripts(String baseDir, String lang) : String
- 3.8 GetValidationTriggerFunction() : String
- 3.9 GetValidationTriggerFunction(String formElement) : String
- 3.10 GetValidationTriggerFunction(String formElement, IDictionary options) : String
ValidationHelper API Document
Helper that provides client-side validation.
The javascript core lib is extension of Peter Bailey's fValidate(http://www.peterbailey.net/fValidate/).
Constructors
ValidationHelper()
Constructor.
Properties
| Name | Type | Description |
|---|---|---|
| VirtualDir | String | Gets or Sets the Virtual Directory the scripts are in. |
| Extension | String |
Methods
BuildScriptInclude(String baseDir, String js, String extension) : String
Missing summary
| Parameter | Description |
|---|---|
| baseDir | Missing documentation |
| js | Missing documentation |
| extension | Missing documentation |
SetSubmitOptions(IDictionary parameters)
Configure the submit and validation options.
| Parameter | Description |
|---|---|
| parameters | Missing documentation |
SetSubmitOptions(Boolean confirm, Boolean disable, Boolean groupError, Int32 errorMode)
Configure the submit and validation options.
| Parameter | Description |
|---|---|
| confirm | True for submit confirmation. Otherwise, false. |
| disable | True for submit buttons disabling. |
| groupError | True for error grouping. |
| errorMode | System.Int32 representing the error mode. |
InstallScripts() : String
Automatic Script installer.
InstallWithCustomMsg(String scriptFilePath) : String
Install the script with a custom message file(based on the fValidate I18N file).
| Parameter | Description |
|---|---|
| scriptFilePath | A System.String represeting the path and file name |
InstallScripts(String baseDir) : String
Manual Script Installer.
You'll need to have the files physically
| Parameter | Description |
|---|---|
| baseDir | The virtual path of the dir where the fValidate are. |
InstallScripts(String baseDir, String lang) : String
Manual Script Installer.
You'll need to have the files physically
| Parameter | Description |
|---|---|
| baseDir | The virtual path of the dir where the fValidate are. |
| lang | The language of the messages. |
GetValidationTriggerFunction() : String
Returns the form validation function.
GetValidationTriggerFunction(String formElement) : String
Returns the form validation function.
| Parameter | Description |
|---|---|
| formElement | Javascript expression that return the desired form. |
GetValidationTriggerFunction(String formElement, IDictionary options) : String
Returns the form validation function where you can override the options:
The options that can be overriden: confirm (bool), disable (bool), groupError (bool), errorMode (int)
| Parameter | Description |
|---|---|
| formElement | Javascript expression that return the desired form. |
| options | Custom options |