summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/Callback.page
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/Callback.page')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/Callback.page15
1 files changed, 15 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