summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected
diff options
context:
space:
mode:
authorwei <>2007-04-02 06:19:55 +0000
committerwei <>2007-04-02 06:19:55 +0000
commit1ba083b9bf77b334b773b84d4d9e5f44319d17a2 (patch)
treeab9b36010b61f22019bb99270b3d4c2aa7381ab7 /tests/FunctionalTests/active-controls/protected
parent183b4fefb355d0c607ea4b7cc270035bcc1ffd9e (diff)
Fixed #585, #586
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/Callback.page15
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/Callback.php13
2 files changed, 28 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/Callback.page b/tests/FunctionalTests/active-controls/protected/pages/Callback.page
new file mode 100644
index 00000000..d8744760
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/Callback.page
@@ -0,0 +1,15 @@
+<com:TForm>
+
+ <com:TCallback ID="callback1" OnCallback="callback1_Requested" />
+ <script type="text/javascript">
+ function do_callback1()
+ {
+ var callback = <%= $this->callback1->ActiveControl->Javascript %>;
+ callback.dispatch();
+ }
+ </script>
+ <div onclick="do_callback1()">Click Me!</div>
+
+ <com:TJavascriptLogger />
+
+</com:TForm> \ No newline at end of file
diff --git a/tests/FunctionalTests/active-controls/protected/pages/Callback.php b/tests/FunctionalTests/active-controls/protected/pages/Callback.php
new file mode 100644
index 00000000..d19d92aa
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/Callback.php
@@ -0,0 +1,13 @@
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Callback extends TPage
+{
+ function callback1_Requested()
+ {
+ var_dump("ok!");
+ }
+}
+
+?> \ No newline at end of file