summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/TInPlaceTextBoxTest.page
blob: 54e38c2c7cf38cf9f97255aafe7caa651b9f20f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<com:TForm ID="form1">

<style>
	.textbox, .editor
	{
		font-family: Arial, Helvetica, sans-serif;
		font-size: 1.2em;
		display: block;
		width: 20em;
	}

	.textbox
	{
		padding: 2px 0px 4px 2px;
		border:1px solid #eee;
	}


	.editor
	{
		background-color: #ffc;
	}
	.loader
	{
		 position:absolute;
		 right:0px;
		 top:0px;
		 color:white;
		 background-color:#900;
		 padding: 0.5em 1em;
	}
</style>

	<h1>TInPlaceTextBox Functional Test</h1>

	<com:TInPlaceTextBox id="label1"
		OnTextChanged="label1_changed"
		EditTriggerControlID="link1"
		TextBoxCssClass="editor"
		ActiveControl.ClientSide.OnLoading="Element.show('loader')"
		ActiveControl.ClientSide.OnComplete="Element.hide('loader')"
		CssClass="textbox" Text="Label 1" />
<span id="loader" style="display:none;" class="loader">Loading...</span>
	<a href="#" id="link1">Edit</a>
	<com:TRequiredFieldValidator
		ControlToValidate="label1"
		ErrorMessage="*" />

	<com:TActiveLabel ID="status" Text="Status:" />

	<com:TJavascriptLogger />

</com:TForm>