summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator2.page
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator2.page')
-rw-r--r--tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator2.page40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator2.page b/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator2.page
new file mode 100644
index 00000000..9433154e
--- /dev/null
+++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator2.page
@@ -0,0 +1,40 @@
+<com:TContent ID="Content">
+ <h1>Callback Enabled Calculator 2</h1>
+ <com:TTextBox id="a" />
+ +
+ <com:TTextBox id="b" />
+ =
+ <com:TActivePanel id="panel1">
+ <com:TTextBox id="c" />
+ </com:TActivePanel>
+
+ <com:TButton id="sum" onclick="do_sum" text="Calculate!" />
+
+ <com:TRequiredFieldValidator
+ ControlToValidate="a"
+ ErrorMessage="left summand is required."
+ ControlCssClass="required"
+ Display="None" />
+ <com:TRequiredFieldValidator
+ ControlToValidate="b"
+ ErrorMessage="right summand is requied."
+ ControlCssClass="required"
+ Display="None" />
+
+ <div class="summarybox">
+ <com:TValidationSummary
+ ID="summary"
+ HeaderText="Unable to calculate because" />
+ </div>
+
+ <com:TCallback ID="callback1" OnCallback="update_callback" />
+
+ <script>
+ $("<%= $this->sum->ClientID %>").onclick = function(event)
+ {
+ <%= $this->callback1->ActiveControl->Javascript %>
+ return false;
+ };
+ </script>
+
+</com:TContent> \ No newline at end of file