summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/CallbackOptionsTest.page
diff options
context:
space:
mode:
authorwei <>2006-06-17 01:55:05 +0000
committerwei <>2006-06-17 01:55:05 +0000
commitb3ceed048bb533a00bbea542f7c12b49c8c83d9b (patch)
tree97962fc3cb6746ae404c4f1d0095834bbb0e1ac7 /tests/FunctionalTests/active-controls/protected/pages/CallbackOptionsTest.page
parent6c0154fb4e292ad22667e618f598a37cc5f9d524 (diff)
Update changes to active controls, add FT tests for active controls, add comments.
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/CallbackOptionsTest.page')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/CallbackOptionsTest.page34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/CallbackOptionsTest.page b/tests/FunctionalTests/active-controls/protected/pages/CallbackOptionsTest.page
new file mode 100644
index 00000000..6e8b8a1e
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/CallbackOptionsTest.page
@@ -0,0 +1,34 @@
+<com:TForm ID="form1">
+ <h1>TCallbackOptions Test</h1>
+
+ <com:TCallbackOptions ID="options1">
+ <prop:ClientSide.OnLoading>
+ $("status").show();
+ </prop:ClientSide.OnLoading>
+ <prop:ClientSide.OnComplete>
+ $("status").hide();
+ </prop:ClientSide.OnComplete>
+ <prop:ClientSide.OnSuccess>
+ Element.update("label1", "Button 1 has returned");
+ </prop:ClientSide.OnSuccess>
+ </com:TCallbackOptions>
+
+ <com:TActiveButton id="button1" Text="Button 1" ActiveControl.CallbackOptions="options1" />
+ <com:TActiveButton id="button2" Text="Button 2" ActiveControl.CallbackOptions="options1">
+ <prop:ActiveControl.ClientSide.OnSuccess>
+ Element.update("label2", "Button 2 has returned");
+ </prop:ActiveControl.ClientSide.OnSuccess>
+ </com:TActiveButton>
+ <com:TActiveButton id="button3" Text="Button 3">
+ <prop:ActiveControl.ClientSide.OnSuccess>
+ Element.update("label3", "Button 3 has returned");
+ </prop:ActiveControl.ClientSide.OnSuccess>
+ </com:TActiveButton>
+
+ <div id="label1">Label 1</div>
+ <div id="label2">Label 2</div>
+ <div id="label3">Label 3</div>
+ <div id="status" style="display:none; background-color: #c00; color:white; text-align:center; padding: 1em" >
+ Loading...
+ </div>
+</com:TForm> \ No newline at end of file