summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/CallbackClientScript.page
blob: 97e9a4043342f4a7d3f2ad4a99c186662a00ad34 (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
<com:TContent ID="body" >

<h1 id="182031">TCallbackClientScript</h1>
<com:DocLink ClassPath="System.Web.UI.ActiveControls.TCallbackClientScript" />

<p class="block-content">
The <tt>TCallbackClientScript</tt> class provides corresponding methods that can be
executed on the client-side (i.e. the browser client that is viewing
the page) during a callback response.
For a complete list of available client side methods, consult the
<com:DocLink ClassPath="System.Web.UI.ActiveControls.TCallbackClientScript" />
</p>

<p class="block-content">
The available methods includes setting/clicking input elements, changing Css
styles, hiding/showing elements, and adding visual effects to elements on the
page. The client-side methods can be access through the <tt>CallbackClient</tt>
property available in <tt>TPage</tt>.
</p>

<p class="block-content">
For example, to hide "$myTextBox" element during callback response, do:
</p>
<com:TTextHighlighter Language="prado" CssClass="source block-content">
$this->getPage()->getCallbackClient()->hide($myTextBox);
</com:TTextHighlighter>

<com:RunBar PagePath="ActiveControls.Samples.TCallbackClientScript.Home" />

</com:TContent>