summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features
diff options
context:
space:
mode:
authorwei <>2006-04-30 00:15:23 +0000
committerwei <>2006-04-30 00:15:23 +0000
commit10b65d6d03ee0afc1ec1a50f320af42a79f5492b (patch)
treed6b8167e0d224f21db6a16da251ba4d069468543 /tests/FunctionalTests/features
parent2cc93773feb5e76d2dd002b1dcd463a01d606794 (diff)
Adding Callback foundations.
Diffstat (limited to 'tests/FunctionalTests/features')
-rw-r--r--tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page17
-rw-r--r--tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml7
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page
new file mode 100644
index 00000000..63bc7f24
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page
@@ -0,0 +1,17 @@
+<com:TContent ID="Content">
+ <com:TClientScript UsingPradoScripts="ajax" />
+ <com:TActiveControl id="control1" />
+ <com:TTextBox />
+ <com:TCheckBoxList>
+ <com:TListItem Text="One" />
+ <com:TListItem Text="Two" />
+ </com:TCheckBoxList>
+ <com:TButton id="button1" Text="Submit" />
+ <script>
+ Event.observe("<%= $this->button1->ClientID %>", "click", function(event)
+ {
+ new Prado.Callback("<%= $this->control1->UniqueID %>", 1);
+ Event.stop(event);
+ });
+ </script>
+</com:TContent> \ No newline at end of file
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml b/tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml
new file mode 100644
index 00000000..1bbc0acf
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/config.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<configuration>
+ <paths>
+ <using namespace="System.Web.UI.ActiveControls.*" />
+ </paths>
+</configuration>