summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page
blob: 260ee80508b3cdb4a12a62e53bd0807e7fd460dd (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
<com:TContent ID="Content">
	<h1>TCallback Demo</h1>
	<com:TCallbackOptions
		ID="options1"
		ClientSide.OnSuccess="alert('ok')"
		ClientSide.EnablePageStateUpdate="false"  />

	<com:TCallback id="control1" 
		CallbackOptions="options1"
		OnCallback="slowResponse" />
	
	<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" >
		<com:TPanel id="panel2" Visible="false">
		<com:TCheckBoxList>
			<com:TListItem Text="One" />
			<com:TListItem Text="Two" />
		</com:TCheckBoxList>
		</com:TPanel>
	</com:TActivePanel>
	

	<com:TButton id="button1" Text="Submit 1 (3s delay)" CausesValidation="false" />
	
	<com:TActiveButton id="button2" Text="Submit 2" OnClick="onButtonClicked" OnCallback="fastResponse" />

	<script>
		Event.observe("<%= $this->button1->ClientID %>", "click", function(event)
		{
			<%= $this->control1->CallbackReference %>	
		
			Event.stop(event);
		});

	</script>
</com:TContent>