diff options
author | ctrlaltca@gmail.com <> | 2011-06-02 16:03:13 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-02 16:03:13 +0000 |
commit | 6818eb71061580a636831b8e6c0ba8aca2c3420b (patch) | |
tree | 696ad78fbf4607f50b570e835e55859f3b3a5d04 /demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php | |
parent | ffc9318788952a879815cfa01a8b17b7ddae89b1 (diff) |
documentation galore: TCallbackClientSide, TCallbackOptions and TCallbackClientScript
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php')
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php new file mode 100644 index 00000000..500d7987 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.php @@ -0,0 +1,29 @@ +<?php
+
+// $Id: Home.php -1 $
+class Home extends TPage
+{
+ public function buttonCallback ($sender, $param)
+ {
+ switch($this->radio1->SelectedValue)
+ {
+ case 1:
+ $this->getCallbackClient()->evaluateScript("<script> alert('something'); </script>");
+ break;
+ case 2:
+ $this->getCallbackClient()->check($this->check1, !$this->check1->Checked);
+ break;
+ case 3:
+ $this->getCallbackClient()->hide($this->label1);
+ break;
+ case 4:
+ $this->getCallbackClient()->show($this->label1);
+ break;
+ case 5:
+ $this->getCallbackClient()->focus($this->txt1);
+ break;
+ }
+ }
+}
+
+?>
\ No newline at end of file |