diff options
author | wei <> | 2006-09-13 23:33:41 +0000 |
---|---|---|
committer | wei <> | 2006-09-13 23:33:41 +0000 |
commit | 9f2905f5e2a6d0ab33e4e2d82162183cfd63a042 (patch) | |
tree | 19ac593839f1003ef91d8b4a0d7e8e25fbf460e3 /demos/quickstart/protected/pages/ActiveControls/Samples | |
parent | 348fb25264f6cc9251f5ae9cb8c7a8a1013e2d67 (diff) |
Fixed #376
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples')
2 files changed, 33 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.page new file mode 100644 index 00000000..8d5cb24d --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.page @@ -0,0 +1,22 @@ +<com:TContent ID="body">
+<!-- $Id: Home.page 1405 2006-09-10 01:03:56Z wei $ -->
+<h1>TActiveCustomValidator Samples (AJAX)</h1>
+
+<table class="sampletable">
+
+<tr><td class="samplenote">
+Custom validator using callbacks:
+</td><td class="sampleaction">
+<com:TTextBox ID="textbox1" />
+<com:TActiveCustomValidator
+ ID="validator1"
+ ControlToValidate="textbox1"
+ ErrorMessage="Please enter 'Prado'"
+ OnServerValidate="validator1_onvalidate" />
+<com:TButton ID="button1" Text="Submit!" />
+</td></tr>
+</table>
+
+<com:TJavascriptLogger />
+
+</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.php new file mode 100644 index 00000000..102afcb0 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.php @@ -0,0 +1,11 @@ +<?php
+
+class Home extends TPage
+{
+ public function validator1_onvalidate($sender, $param)
+ {
+ $param->IsValid = $this->textbox1->Text == 'Prado';
+ }
+}
+
+?>
\ No newline at end of file |