summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/NestedActiveControls.page
blob: a79c5afaae0d5edba6b575ab685a12d9cea94c08 (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
<com:TContent ID="Content">
	<h1>Nested Active Controls Test</h1>
	<com:TCallback ID="callback1" OnCallback="callback1_requested" />
	<com:TActivePanel ID="panel1">
		<com:TPlaceHolder ID="content1" Visible="false">
			Something lalala
			<com:TActiveButton ID="button1" Text="Button 1" OnClick="button1_clicked" />
			<com:TActiveLabel ID="label3" Text="Label 3" />

		</com:TPlaceHolder>
		<com:TActiveLabel ID="label1" Text="Label 1" />
	</com:TActivePanel>
	<div id="div1" style="border:1px solid #666; background-color: #ffe; text-align: center; padding:1em; margin: 2em">
		Click Me!
	</div>
	<com:TActiveLabel ID="label2" Text="Label 2" />
	<com:TClientScript>
		jQuery( document ).ready(function() {
			jQuery("#div1").click(function() {
				Prado.Callback("<%= $this->callback1->UniqueID %>");
			});
		});
	</com:TClientScript>

</com:TContent>