summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket504.page
blob: 0242dd973505bdc4dbdc8ac047f30f2d4b370c23 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<com:TContent ID="Content">

<com:TCallback ID="loadData" OnCallback="loadData_Callback"/>

<div style="height:1em">
<div id="loading" style="display:none"> loading...</div>
</div>
<div id="status"></div>

<com:TCallbackOptions ID="LoadDataOptions">
	<prop:ClientSide.OnSuccess>
			$('status').innerHTML = sender.ActiveControl.CallbackParameter + " updated";
	</prop:ClientSide.OnSuccess>

	<prop:ClientSide.OnLoading>
			$('loading').show();
	</prop:ClientSide.OnLoading>

	<prop:ClientSide.OnComplete>
			$('loading').hide();
	</prop:ClientSide.OnComplete>
</com:TCallbackOptions>


		
<com:TActiveLinkButton 
	Text="Tab A"
	OnCallback="changePanel"
	ActiveControl.CallbackOptions="LoadDataOptions"
	ActiveControl.CallbackParameter="panelA"
	/> 
<com:TActiveLinkButton
	Text="Tab B"
	OnCallback="changePanel"
	ActiveControl.CallbackOptions="LoadDataOptions"
	ActiveControl.CallbackParameter="panelB"
	/> 
<com:TActiveLinkButton
	Text="Tab C"
	OnCallback="changePanel"
	ActiveControl.CallbackOptions="LoadDataOptions"
	ActiveControl.CallbackParameter="panelC"
	/> 
<com:TActiveLinkButton
	Text="Tab D"
	OnCallback="changePanel"
	ActiveControl.CallbackOptions="LoadDataOptions"
	ActiveControl.CallbackParameter="panelD"
	/> 

<com:TActivePanel ID="panelA">
	<h1>Panel A</h1>
</com:TActivePanel>

<com:TActivePanel ID="panelB">
	<h1>Panel B</h1>
</com:TActivePanel>

<com:TActivePanel ID="panelC">
	<h1>Panel C</h1>
</com:TActivePanel>

<com:TActivePanel ID="panelD">
	<h1>Panel D</h1>
</com:TActivePanel>

</com:TContent>