blob: e3f13640119f06d12c25d8a166c8001b3d98354a (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
|
<com:TContent ID="body" >
<h1>ActiveControls (AJAX)</h1>
<p>Active Controls allows the browser to communicate with server
without refreshing the current page.
<h2>Standard Active Controls</h2>
<ul>
<li>
<a href="?page=ActiveControls.ActiveButton">TActiveButton</a>
represents a click button on a Web page. It can be used to trigger a callback request.
</li>
<li>
<a href="?page=ActiveControls.ActiveCheckBox">TActiveCheckBox</a>
represents a checkbox on a Web page. It can be used to collect two-state user input
and can trigger a callback request.
</li>
<li>
<a href="?page=ActiveControls.ActiveCustomValidator">TActiveCustomValidator</a>
validates a particular control using a callback request.
</li>
<li>
<a href="?page=ActiveControls.ActiveHyperLink">TActiveHyperLink</a>
represents a hyperlink on a Web page.
</li>
<li>
<a href="?page=ActiveControls.ActiveImage">TActiveImage</a>
represents an image on a Web page.
</li>
<li>
<a href="?page=ActiveControls.ActiveImageButton">TActiveImageButton</a>
represents a click button that has an image as the background.
It is can be used to trigger a callback request.
</li>
<li>
<a href="?page=ActiveControls.ActiveLabel">TActiveLabel</a>
represents a label on a Web page.
The label can be customized via various CSS attributes.
</li>
<li>
<a href="?page=ActiveControls.ActiveLinkButton">TActiveLinkButton</a>
represents a hyperlink that can perform a callback request.
</li>
<li>
<a href="?page=ActiveControls.ActivePanel">TActivePanel</a>
represents a container for other controls on a Web page. In HTML,
it is displayed as a <div> element. The panel's contents
can be replaced during a callback request.
</li>
<li>
<a href="?page=ActiveControls.ActiveRadioButton">TActiveRadioButton</a>
represents a radiobutton on a Web page.
It is mainly used in a group from which users make a choice. It can
be used to perform a callback request.
</li>
<li>
<a href="?page=ActiveControls.ActiveTextBox">TActiveTextBox</a>
represents a text input field on a Web page.
It can collect single-line, multi-line or password text input from users.
It can be used to perform a callback request.
</li>
<li>
<a href="?page=ActiveControls.CallbackOptions">TCallbackOptions</a>
callback options such as <tt>OnLoading</tt/> client-side event handlers.
</li>
</ul>
<h2>Active List Controls</h2>
<ul>
<li>
<a href="?page=ActiveControls.ActiveCheckBoxList">TActiveCheckBoxList</a>
displays a list of checkboxes on a Web page and each checkbox
can trigger a callback request.
</li>
<li>
<a href="?page=ActiveControls.ActiveDropDownList">TActiveDropDownList</a>
displays a dropdown list box that allows users to select a
single option from a few prespecified ones. It can be used
to perform a callback request.
</li>
<li>
<a href="?page=ActiveControls.ActiveListBox">TActiveListBox</a>
displays a list box that allows single or multiple selection. It can be used
to perform a callback request.
</li>
<li>
<a href="?page=ActiveControls.ActiveRadioButtonList">TActiveRadioButtonList</a>
is similar to TActiveCheckBoxList in every aspect except that each
TActiveRadioButtonList displays a group of radiobuttons. Each radio button
can perform a callback request.
</li>
</ul>
<h2>Extended Active Controls</h2>
<ul>
<li>
<a href="?page=ActiveControls.AutoComplete">TAutoComplete</a>
extends TActiveTextBox to offer text completion suggestions.
</li>
<li>
<a href="?page=ActiveControls.Callback">TCallback</a>
a generic control that can perform callback requests.
</li>
<li>
<a href="?page=ActiveControls.EventTriggeredCallback">TEventTriggeredCallback</a>
triggers a callback request based on HTML DOM events.
</li>
<li>
<a href="?page=ActiveControls.InPlaceTextBox">TInPlaceTextBox</a>
represents a label that can be edited by clicked.
</li>
<li>
<a href="?page=ActiveControls.TimeTriggeredCallback">TTimeTriggeredCallback</a>
triggers a callback request based on time elapsed.
</li>
<li>
<a href="?page=ActiveControls.ValueTriggeredCallback">TValueTriggeredCallback</a>
monitors (using a timer) an attribute of an HTML element and triggers a callback request
when the attribute value changes.
</li>
</ul>
<h2>Active Control Abilities</h2>
<!-- tabular: align=|l|l|l|, width=(0.55 0.15 0.15 0.15) -->
<table class="tabular">
<tr>
<th>Control Name</th>
<th>Can Update</th>
<th>Triggers Callback</th>
<th>Can Degrade</th>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveButton">TActiveButton</a>
</td>
<td>Yes</td><td>Yes</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveCheckBox">TActiveCheckBox</a>
</td>
<td>Yes</td><td>Yes</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveCustomValidator">TActiveCustomValidator</a>
</td>
<td>No</td><td>Yes</td><td>No</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveHyperLink">TActiveHyperLink</a>
</td>
<td>Yes</td><td>No</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveImage">TActiveImage</a>
</td>
<td>Yes</td><td>No</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveImageButton">TActiveImageButton</a>
</td>
<td>Yes</td><td>Yes</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveLabel">TActiveLabel</a>
</td>
<td>Yes</td><td>No</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveLinkButton">TActiveLinkButton</a>
</td>
<td>Yes</td><td>Yes</td><td>No</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActivePanel">TActivePanel</a>
</td>
<td>Yes</td><td>No</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveRadioButton">TActiveRadioButton</a>
</td>
<td>Yes</td><td>Yes</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveTextBox">TActiveTextBox</a>
</td>
<td>Yes</td><td>Yes</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.CallbackOptions">TCallbackOptions</a>
</td>
<td>No</td><td>No</td><td>N/A</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveCheckBoxList">TActiveCheckBoxList</a>
</td>
<td>Yes</td><td>Yes</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveDropDownList">TActiveDropDownList</a>
</td>
<td>Yes</td><td>Yes</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveListBox">TActiveListBox</a>
</td>
<td>Yes</td><td>Yes</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ActiveRadioButtonList">TActiveRadioButtonList</a>
</td>
<td>Yes</td><td>Yes</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.AutoComplete">TAutoComplete</a>
</td>
<td>Yes</td><td>Yes</td><td>Yes</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.Callback">TCallback</a>
</td>
<td>No</td><td>Yes</td><td>No</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.EventTriggeredCallback">TEventTriggeredCallback</a>
</td>
<td>No</td><td>Yes</td><td>No</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.InPlaceTextBox">TInPlaceTextBox</a>
</td>
<td>Yes</td><td>Yes</td><td>No</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.TimeTriggeredCallback">TTimeTriggeredCallback</a>
</td>
<td>No</td><td>Yes</td><td>No</td>
</tr>
<tr><td>
<a href="?page=ActiveControls.ValueTriggeredCallback">TValueTriggeredCallback</a>
</td>
<td>No</td><td>Yes</td><td>No</td>
</tr>
</table>
<h2>Active Control Infrastructure Classes</h2>
<p>The following classes provide the basic infrastructure classes required to
realize the active controls.</p>
<ul>
<li>
<a href="?page=ActiveControls.ActiveControlAdapter">TActiveControlAdapter</a>
tracks the viewstate values of the control and update differences of the client-side HTML
element attributes.
</li>
<li>
<a href="?page=ActiveControls.ActiveListControlAdapter">TActiveListControlAdapter</a>
allows the adapted list controls to change the selections on the client-side during
a callback request.
</li>
<li>
<a href="?page=ActiveControls.ActivePageAdapter">TActivePageAdapter</a>
process the page life-cycle for callback requests.
</li>
<li>
<a href="?page=ActiveControls.BaseActiveControl">TBaseActiveControl</a>
common active control methods and options.
</li>
<li>
<a href="?page=ActiveControls.CallbackClientScript">TCallbackClientScript</a>
methods to manipulate the client-side HTML elements, also includes methods
to invoke javascript Effects on HTML elements.
</li>
<li>
<a href="?page=ActiveControls.CallbackClientSide">TCallbackClientSide</a>
common client-side callback request options, and client-side event handlers.
</li>
<li>
<a href="?page=ActiveControls.CallbackResponseAdapter">TCallbackResponseAdapter</a>
HTTP response for callback requests.
</li>
</ul>
<p>
<img src="<%~ postback-callback.png %>" class="figure" />
</p>
<p>
<img src="<%~ TActiveButtonClass.png %>" class="figure"/>
</p>
</com:TContent>
|