summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/ActiveControls/ActiveControl.page
blob: 87522f72e7e4c20305e5b4f00d0883ed185eeb2b (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
<com:TContent ID="Content">
	<h1>TCallback Demo</h1>
	<com:TClientScript UsingPradoScripts="ajax" />
	<com:TCallback id="control1" 
		OnCallback="control1onCallback">
		<com:TButton id="button2" Text="Hello" Visible="false"/>
	</com:TCallback>
	<com:TTextBox id="text1" />

	<com:TCheckBoxList>
		<com:TListItem Text="One" />
		<com:TListItem Text="Two" />
	</com:TCheckBoxList>

	<com:TPanel id="panel2" Visible="false">
		asdad <com:TCheckBox id="checkbox1" />
	</com:TPanel>

	<input type="hidden" name="PRADO_CALLBACK_TARGET" value="<%= $this->control1->UniqueID %>" />

	<com:TButton id="button1" Text="Submit" CausesValidation="false" />
	<script>
		Event.observe("<%= $this->button1->ClientID %>", "click", function(event)
		{
			<%= $this->control1->CallbackReference %>	
		
			Event.stop(event);
		});
		
	</script>
</com:TContent>