diff options
author | wei <> | 2006-05-02 08:28:17 +0000 |
---|---|---|
committer | wei <> | 2006-05-02 08:28:17 +0000 |
commit | d255f4d0e332740b3984e21ce3f7a4a4f1968ba3 (patch) | |
tree | 84bf54643e3a188330f6b7b5043efeed1aa44b6e /tests/FunctionalTests/features/protected/pages/ActiveControls | |
parent | c5983c0440913cd67f3744c7dda3c3bfc7eee0ed (diff) |
Adding more work on ActiveControls.
Diffstat (limited to 'tests/FunctionalTests/features/protected/pages/ActiveControls')
-rw-r--r-- | tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page index 63bc7f24..c20e810b 100644 --- a/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page +++ b/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page @@ -1,16 +1,21 @@ <com:TContent ID="Content">
<com:TClientScript UsingPradoScripts="ajax" />
- <com:TActiveControl id="control1" />
- <com:TTextBox />
+ <com:TActiveControl id="control1"
+ ClientSide.CausesValidation="false"
+ ClientSide.OnSuccess="Logger.info('result:'+result)" />
+ <com:TTextBox id="text1" />
+ <com:TRequiredFieldValidator
+ ControlToValidate="text1"
+ ErrorMessage="*" />
<com:TCheckBoxList>
<com:TListItem Text="One" />
<com:TListItem Text="Two" />
</com:TCheckBoxList>
- <com:TButton id="button1" Text="Submit" />
+ <com:TButton id="button1" Text="Submit" CausesValidation="false" />
<script>
Event.observe("<%= $this->button1->ClientID %>", "click", function(event)
{
- new Prado.Callback("<%= $this->control1->UniqueID %>", 1);
+ <%= $this->control1->CallbackReference %>
Event.stop(event);
});
</script>
|