summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2016-03-06 18:26:31 +0100
committerFabio Bas <ctrlaltca@gmail.com>2016-03-06 18:26:31 +0100
commitc7ab73d6448aad8aa630878fc83298b762505194 (patch)
tree2834ea2eb2f35f00319be25729b6a051b8769d32 /demos
parent4dc390ed78f360d11097041ef8fe0d0076939e22 (diff)
Revert part of #553; fix #574
Diffstat (limited to 'demos')
-rwxr-xr-xdemos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.page3
-rwxr-xr-xdemos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.php8
2 files changed, 10 insertions, 1 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.page
index 1d16235e..33811167 100755
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.page
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.page
@@ -12,7 +12,8 @@ Custom validator using callbacks:
ControlToValidate="textbox1"
ErrorMessage="Please enter 'Prado'"
OnServerValidate="validator1_onvalidate" />
-<com:TActiveButton ID="button1" Text="Submit!" />
+<com:TActiveButton ID="button1" Text="Submit!" OnCallback="button1_oncallback"/>
+<com:TActiveLabel ID="label1" />
</td></tr>
</table>
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.php
index 916432ca..b8d4e28a 100755
--- a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.php
+++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveCustomValidator/Home.php
@@ -6,5 +6,13 @@ class Home extends TPage
{
$param->IsValid = $this->textbox1->Text == 'Prado';
}
+
+ public function button1_oncallback($sender, $param)
+ {
+ if($this->IsValid)
+ $this->label1->Text='Callback success';
+ else
+ $this->label1->Text='Validation failed';
+ }
}