summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page12
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php6
-rw-r--r--demos/quickstart/protected/pages/Fundamentals/classtree.gifbin14164 -> 19840 bytes
-rw-r--r--demos/quickstart/protected/pages/Fundamentals/classtree.vsdbin63488 -> 72192 bytes
4 files changed, 18 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page
index 4a9b58a3..c8315e42 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.page
@@ -60,6 +60,18 @@ Text box's behavior upon postback:
<com:TButton Text="Submit" Click="submitText" />
</td></tr>
+<tr><td class="samplenote">
+Safety feature (cross-site scripting prevention):
+</td><td class="sampleaction">
+<com:TTextBox
+ ID="TextBox2"
+ AutoPostBack="true"
+ Text="<a href=javascript:xxx>test</a>"
+ Width="200px"/>
+<b>SafeText:</b>
+<com:TLabel BackColor="silver" ID="Output" Text=<%#$this->Page->TextBox2->SafeText%> />
+</td></tr>
+
</table>
<h2>Password Text Boxes</h2>
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php
index e3160ead..30add74c 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php
+++ b/demos/quickstart/protected/pages/Controls/Samples/TTextBox/Home.php
@@ -2,6 +2,12 @@
class Home extends TPage
{
+ protected function onLoad($param)
+ {
+ parent::onLoad($param);
+ $this->Output->dataBind();
+ }
+
public function textChanged($sender,$param)
{
$sender->Text="text changed";
diff --git a/demos/quickstart/protected/pages/Fundamentals/classtree.gif b/demos/quickstart/protected/pages/Fundamentals/classtree.gif
index 318ed278..63e0194c 100644
--- a/demos/quickstart/protected/pages/Fundamentals/classtree.gif
+++ b/demos/quickstart/protected/pages/Fundamentals/classtree.gif
Binary files differ
diff --git a/demos/quickstart/protected/pages/Fundamentals/classtree.vsd b/demos/quickstart/protected/pages/Fundamentals/classtree.vsd
index fefab3f3..f2fa4391 100644
--- a/demos/quickstart/protected/pages/Fundamentals/classtree.vsd
+++ b/demos/quickstart/protected/pages/Fundamentals/classtree.vsd
Binary files differ