summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/PeriodicCallbackTest.page
diff options
context:
space:
mode:
authorwei <>2006-08-12 12:54:27 +0000
committerwei <>2006-08-12 12:54:27 +0000
commit1180e6486139a9c9662984367c4f624394e06f35 (patch)
treef89a379960284595d5a425e22424582eea57422c /tests/FunctionalTests/active-controls/protected/pages/PeriodicCallbackTest.page
parent54d4919e3f1b00b644fa3c107acdf20159a1b154 (diff)
Add Triggered Callbacks
Diffstat (limited to 'tests/FunctionalTests/active-controls/protected/pages/PeriodicCallbackTest.page')
-rw-r--r--tests/FunctionalTests/active-controls/protected/pages/PeriodicCallbackTest.page21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/FunctionalTests/active-controls/protected/pages/PeriodicCallbackTest.page b/tests/FunctionalTests/active-controls/protected/pages/PeriodicCallbackTest.page
new file mode 100644
index 00000000..bbc12862
--- /dev/null
+++ b/tests/FunctionalTests/active-controls/protected/pages/PeriodicCallbackTest.page
@@ -0,0 +1,21 @@
+<com:TForm ID="form1">
+ <h1>TPeriodicCallback + 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:TPeriodicCallback ID="timer1" Interval="0.1" OnCallback="tick">
+ <prop:ActiveControl.ClientSide
+ OnLoading="$('status').show()"
+ OnComplete="$('status').hide()" />
+ </com:TPeriodicCallback>
+ <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> \ No newline at end of file