summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ActivePanelTest.page
blob: 645a2a929c8401af8b0a358bd8dd787da26867a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<com:TForm ID="form1">
	<h1>Active Panel replacement tests </h1>
	<com:TCallback ID="callback1" OnCallback="callback1_requested" />
	<com:TActivePanel ID="panel1">
		<com:TPlaceHolder ID="content1" Visible="false">
			Something lalala <com:TButton ID="button1" Text="Button Text"/>
		</com:TPlaceHolder>
	</com:TActivePanel>
	<div id="div1" style="border:1px solid #666; background-color: #ffe; text-align: center; padding:3em">
		Click Me!
	</div>
	<script type="text/javascript">
		jQuery( document ).ready(function() {
			jQuery("#div1").click(function() {
				Prado.Callback("<%= $this->callback1->UniqueID %>");
			});
		});
	</script>
</com:TForm>