diff options
author | wei <> | 2006-12-05 23:37:07 +0000 |
---|---|---|
committer | wei <> | 2006-12-05 23:37:07 +0000 |
commit | 33b2284955a8f0015922d4c69c5082141b584f27 (patch) | |
tree | e23b3805a8c1e3dd70076ae36d2e4733f11d56bc /tests/FunctionalTests/active-controls/protected/pages/InPlaceWithValidator.page | |
parent | 176ee7e9b6c69cf42e7afeeb03db602237a49bc3 (diff) |
load the inlineeditor textbox in client side onload.
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/InPlaceWithValidator.page')
-rw-r--r-- | tests/FunctionalTests/active-controls/protected/pages/InPlaceWithValidator.page | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/InPlaceWithValidator.page b/tests/FunctionalTests/active-controls/protected/pages/InPlaceWithValidator.page new file mode 100644 index 00000000..ba3a35db --- /dev/null +++ b/tests/FunctionalTests/active-controls/protected/pages/InPlaceWithValidator.page @@ -0,0 +1,78 @@ +
+<style>
+ .textbox
+ {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 1.2em;
+ display: block;
+ width: 20em;
+ }
+
+ .textbox
+ {
+ padding: 2px 0px 4px 2px;
+ border:1px solid #eee;
+ }
+
+
+ input.textbox
+ {
+ background-color: #ffc;
+ }
+ .loader
+ {
+ position:absolute;
+ right:0px;
+ top:0px;
+ color:white;
+ background-color:#900;
+ padding: 0.5em 1em;
+ }
+ input.required
+ {
+ border: 1px solid red;
+ background-color: pink;
+ }
+</style>
+
+<com:TForm>
+ <com:TInPlaceTextBox
+ ID="Firstname"
+ Text="firstname"
+ CssClass="textbox"
+ ValidationGroup="Group"
+ />
+ <com:TRequiredFieldValidator
+ ControlToValidate="Firstname"
+ ErrorMessage="Firstname required"
+ InitialValue="firstname"
+ ValidationGroup="Group"
+ />
+ <br />
+ <com:TTextBox
+ ID="Lastname"
+ Text="lastname"
+ />
+ <com:TRequiredFieldValidator
+ ControlToValidate="Lastname"
+ ErrorMessage="Lastname required"
+ InitialValue="lastname"
+ ValidationGroup="Group"
+ />
+ <br />
+ <com:TActiveButton ID="active_button"
+ Text="Active Submit"
+ ValidationGroup="Group"
+ CausesValidation="true"
+ OnCallback="button_valid"
+ />
+ <com:TButton ID="passive_button"
+ Text="Passive Submit"
+ ValidationGroup="Group"
+ CausesValidation="true"
+ OnClick="button_valid"
+ />
+ <br />
+ <com:TActiveLabel ID="status" Text="Status:" />
+ <com:TJavascriptLogger />
+</com:TForm>
\ No newline at end of file |