summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/TimeTriggeredCallbackTest.page
blob: a285f03de9c67a6882f4efa4429893e43f7d9c7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<com:TForm ID="form1">
	<h1>TTimeTriggeredCallback + ViewState Tests</h1>
	<com:TActiveButton id="button1" Text="Start Timer" OnCallback="start_timer" />
	<com:TActiveButton Text="Stop Timer" OnCallback="stop_timer" />
	<div style="margin:1em; padding:1em; border:1px solid #ccc;">
		<com:TActiveLabel ID="label1" Text="ViewState Counter : " />
	</div>
	<com:TTimeTriggeredCallback ID="timer1" Interval="0.5" OnCallback="tick">
		<prop:ClientSide
			OnLoading="$('status').show()"
			OnComplete="$('status').hide()" />
	</com:TTimeTriggeredCallback>
	<div id="status" style="margin:1em; padding:0.5em;
		text-align:center;
		background-color:#900;
		color:white; display: none;
		position: absolute; right: 0; top: 0">
		Loading...
	</div>
	<com:TJavascriptLogger />
</com:TForm>