From dd028bec3822d1d9c28c35d599d687e038c7705f Mon Sep 17 00:00:00 2001
From: wei <>
Date: Thu, 4 Jan 2007 11:23:26 +0000
Subject: Add chat demo and tutorial.
---
.../protected/pages/ClientSideDispatch.page | 27 +++++++++++++++++++
.../protected/pages/ClientSideDispatch.php | 17 ++++++++++++
.../protected/pages/RadioButtonListTest.page | 30 ++++++++++++++++++++++
.../protected/pages/RadioButtonListTest.php | 28 ++++++++++++++++++++
4 files changed, 102 insertions(+)
create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.page
create mode 100644 tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.php
create mode 100644 tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.page
create mode 100644 tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php
(limited to 'tests/FunctionalTests/active-controls')
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.page b/tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.page
new file mode 100644
index 00000000..acf56bfe
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.page
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+ var link1 = Prado.CallbackRequest.getRequestById('<%= $this->link1->ClientID %>');
+ Prado.Callback('<%= $this->callback1->UniqueID %>', link1.getCallbackParameter());
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.php b/tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.php
new file mode 100644
index 00000000..84099114
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.php
@@ -0,0 +1,17 @@
+status1->Text = "Method 1 callback with parameter: {$param->CallbackParameter}";
+ }
+
+ function method2($sender, $param)
+ {
+ $this->status2->Text = "Method 2 callback";
+ }
+}
+
+?>
\ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.page b/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.page
new file mode 100644
index 00000000..7de9c6ab
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.page
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php b/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php
new file mode 100644
index 00000000..10c45aa3
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/RadioButtonListTest.php
@@ -0,0 +1,28 @@
+rad_button_list->SelectedValue){
+ case 'yes':
+ $choice.='Yes :-)';
+ break;
+ case 'no':
+ $choice.='No :-(';
+ break;
+ case 'whynot':
+ $choice.='Why not ???';
+ break;
+ }
+ $this->label->Text = $choice;
+ }
+
+ public function action($sender,$param){
+ $this->label->Text = 'Action...';
+ }
+
+}
+
+
+?>
\ No newline at end of file
--
cgit v1.2.3