From 05879b19350009f9d9c9db6868b38619d3cb4bdc Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 1 Jun 2011 21:01:57 +0000 Subject: added documentation for TActiveLabel class --- .../ActiveControls/Samples/TActiveLabel/Home.page | 34 ++++++++++++++++++++++ .../ActiveControls/Samples/TActiveLabel/Home.php | 16 ++++++++++ 2 files changed, 50 insertions(+) create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page create mode 100644 demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples') diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page new file mode 100644 index 00000000..a1e242d3 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page @@ -0,0 +1,34 @@ + + +

TActiveLabel Samples

+ + + + + + + +
+An active label text being set as the result of a callback: + + + + +
+Upon button click, the textbox contents will be set on the label. Note that text needs to be properly escaped to avoid html injections: + + + + +
+ +
$Id$
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php new file mode 100644 index 00000000..aa26fbe5 --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.php @@ -0,0 +1,16 @@ +label1->Text="You clicked the button, didn't you?"; + } + + public function buttonClicked2($sender,$param) + { + $this->label2->Text=THttpUtility::htmlEncode($this->txt2->Text); + } +} + +?> \ No newline at end of file -- cgit v1.2.3