diff options
author | wei <> | 2006-12-04 00:17:43 +0000 |
---|---|---|
committer | wei <> | 2006-12-04 00:17:43 +0000 |
commit | 91fe694c8755aa2d05743946a3681be7232420b6 (patch) | |
tree | 14d822b190fd729d141dbaa99cd26ed98e1b7940 /demos | |
parent | 18ea316c553f7ccfc18b73f0c987de007f11b275 (diff) |
propage changes to OnError and OnSuccess for validators ClientSide.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Validation.page | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Validation.page b/demos/quickstart/protected/pages/Controls/Validation.page index 2405fb45..0e4006bb 100644 --- a/demos/quickstart/protected/pages/Controls/Validation.page +++ b/demos/quickstart/protected/pages/Controls/Validation.page @@ -156,8 +156,8 @@ The summary can be displayed as a list, a bulleted list, or a single paragraph b All validators contains the following events.
<ul>
<li>The <tt>OnValidate</tt> event is raise before the validator validation functions are called.</li>
- <li>The <tt>OnSuccess</tt> event is raised after the validator has successfully validate the control.</li>
- <li>The <tt>OnError</tt> event is raised after the validator fails validation.</li>
+ <li>The <tt>OnValidationSuccess</tt> event is raised after the validator has successfully validate the control.</li>
+ <li>The <tt>OnValidationError</tt> event is raised after the validator fails validation.</li>
</ul>
The corresponding events for the client side is available as sub-properties
of the <tt>ClientSide</tt> property of the validator.
@@ -165,9 +165,9 @@ The summary can be displayed as a list, a bulleted list, or a single paragraph b <p>The following example pop-up a message saying "hello" when the validator fails on the client-side.
<com:TTextHighlighter Language="prado" CssClass="source">
<com:TRequiredFieldValidator ... >
- <prop:ClientSide.OnError>
+ <prop:ClientSide.OnValidationError>
alert("hello");
- </prop:ClientSide.OnError>
+ </prop:ClientSide.OnValidationError>
</com:TRequiredFieldValidator>
</com:TTextHighlighter>
The resulting client-side event callback function is of the following form.
|