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

TActiveTextBox Samples

+ + + + + + + +
+An active textbox being set as the result of a callback: + + + + +
+An active textbox with AutoPostBack="true"; Pressing Enter/Return, the textbox contents will be set on the label. +Note that text needs to be properly escaped to avoid html injections: + + + +
+ +
$Id: Home.page 2946 2011-06-01 21:01:57Z ctrlaltca@gmail.com $
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php new file mode 100644 index 00000000..1993b78d --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveTextBox/Home.php @@ -0,0 +1,16 @@ +txt1->Text="You clicked the button, didn't you?"; + } + + public function textChanged($sender,$param) + { + $this->label2->Text=THttpUtility::htmlEncode($this->txt2->Text); + } +} + +?> \ No newline at end of file -- cgit v1.2.3