summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.page
diff options
context:
space:
mode:
authorwei <>2006-09-01 01:07:51 +0000
committerwei <>2006-09-01 01:07:51 +0000
commit769856093ded9e4aae341a7d79b7f1441e7d5478 (patch)
treeba3e04abf5f73deed023bab7ec95b9b245dfcb22 /tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.page
parent47a3cb88e7ed7f2a87bbf024dff3416fc6cd8002 (diff)
Add TActiveCustomValidator
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.page')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.page38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.page b/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.page
new file mode 100644
index 00000000..375ede75
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/CallbackCustomValidatorTest.page
@@ -0,0 +1,38 @@
+<com:TForm ID="form1">
+<style>
+ .loader
+ {
+ position:absolute;
+ right:0px;
+ top:0px;
+ color:white;
+ background-color:#900;
+ padding: 0.5em 1em;
+ }
+ input.required
+ {
+ border: 1px solid red;
+ background-color: pink;
+ }
+</style>
+ <h1>Callback Custom Validator Test</h1>
+
+ <com:TTextBox ID="text1" />
+
+ <com:TActiveCustomValidator
+ ControlToValidate="text1"
+ ErrorMessage="*"
+ ControlCssClass="required"
+ OnServerValidate="validate_text1">
+ <prop:ActiveControl.ClientSide
+ OnLoading="Element.show('loader')"
+ OnComplete="Element.hide('loader')" />
+ </com:TActiveCustomValidator>
+
+ <com:TButton Text="Submit" />
+
+ <span id="loader" style="display:none;" onfocus="alert('ok')" class="loader">Loading...</span>
+
+ <com:TJavascriptLogger />
+
+</com:TForm> \ No newline at end of file