summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.page
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.page')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/ClientSideDispatch.page27
1 files changed, 27 insertions, 0 deletions
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 @@
+<com:TForm>
+
+<com:TCallback ID="callback1" OnCallback="method1" />
+
+ <com:TCallbackOptions ID="options1">
+ <prop:ClientSide.OnSuccess>
+ var link1 = Prado.CallbackRequest.getRequestById('<%= $this->link1->ClientID %>');
+ Prado.Callback('<%= $this->callback1->UniqueID %>', link1.getCallbackParameter());
+ </prop:ClientSide.OnSuccess>
+
+ </com:TCallbackOptions>
+
+
+ <com:TActiveLinkButton
+ ID="link1"
+ Text="Tab 1"
+ OnCallback="method2"
+ ActiveControl.CallbackParameter="test"
+ ActiveControl.CallbackOptions="options1"/>
+
+<com:TActiveLabel ID="status1" />
+
+<com:TActiveLabel ID="status2" />
+
+<com:TJavascriptLogger />
+
+</com:TForm> \ No newline at end of file