summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/ReplaceContentTest.page
blob: 7842cde91f5ec5b287196916ea16e21a64dd02f3 (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:TForm>

<h1>Callback Replace Content Test</h1>

<com:TPanel ID="panel1" style="border:1px solid red; background-color: #ffc; padding:2em;">
Main Panel
	<com:TPanel ID="subpanel" style="border:1px solid blue; background-color: #fff; padding: 2em;">
		Sub Panel
	</com:TPanel>
</com:TPanel>

<com:TPanel ID="newPanel" Visible="false">
	Time : <com:TButton Text=<%= time() %> />
</com:TPanel>

<div>
<com:TTextBox ID="content" />
<br />
<com:TCheckBox ID="check1" Text="Replace using Controls" />
</div>

<com:TActiveButton id="btn_append" Text="Append to Sub Panel" OnCallback="appendContent"/>
<com:TActiveButton id="btn_prepend" Text="Prepend to Sub Panel" OnCallback="prependContent" />
<com:TActiveButton id="btn_before" Text="Insert Before Sub Panel" OnCallback="insertContentBefore"/>
<com:TActiveButton id="btn_after" Text="Insert After Sub Panel" OnCallback="insertContentAfter"/>

<com:TActiveButton id="btn_replace" Text="Replace" OnCallback="replaceContent"/>

<com:TJavascriptLogger />

</com:TForm>