summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page
diff options
context:
space:
mode:
authorwei <>2006-05-06 02:26:20 +0000
committerwei <>2006-05-06 02:26:20 +0000
commita7f6c6640ac9295eec3ae2edbb2250179eb85e33 (patch)
tree8a3879c747dfc3bcd5d65f334341ea7c81ced268 /tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page
parent46155621cbf97191fca495cbd09a2eedd82afa82 (diff)
Adding TActiveButton and TActiveTextBox
Diffstat (limited to 'tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page')
-rw-r--r--tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page24
1 files changed, 10 insertions, 14 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page
index c98bae4d..fab91c40 100644
--- a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page
+++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page
@@ -1,16 +1,16 @@
<com:TContent ID="Content">
<h1>TCallback Demo</h1>
- <com:TClientScript UsingPradoScripts="ajax" />
<com:TCallback id="control1"
ClientSide.EnablePageStateUpdate="false"
OnCallback="slowResponse" />
-
- <com:TCallback id="control2"
- ClientSide.HasPriority="false"
- OnCallback="fastResponse" />
-
+
<com:TActiveLabel id="label1" Text="Name:" AllowCallbackUpdate="false" />
<com:TTextBox id="text1" />
+
+ <com:TRequiredFieldValidator
+ ControlToValidate="text1"
+ ErrorMessage="*" />
+
<com:TActiveLabel id="label2" />
<com:TActivePanel id="panel1" >
@@ -24,7 +24,9 @@
<com:TButton id="button1" Text="Submit 1 (3s delay)" CausesValidation="false" />
- <com:TButton id="button2" Text="Submit 2" CausesValidation="false" />
+
+ <com:TActiveButton id="button2" Text="Submit 2" OnClick="onButtonClicked" OnCallback="fastResponse" />
+
<script>
Event.observe("<%= $this->button1->ClientID %>", "click", function(event)
{
@@ -32,12 +34,6 @@
Event.stop(event);
});
- Event.observe("<%= $this->button2->ClientID %>", "click", function(event)
- {
- <%= $this->control2->CallbackReference %>
-
- Event.stop(event);
- });
-
+
</script>
</com:TContent> \ No newline at end of file