summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/Samples/TCallbackClientScript/Home.page
blob: dfec475568de3c4a38f66d68fc5aa0806021ac81 (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
<com:TContent ID="body">
<h1>TCallbackClientScript Samples</h1>

<p>
  Choose an action from the list and click the button; the server-side php code will get the selected value and
  force the execution of some clientside js code in the callback response.
</p>

<h2>Actions</h2>
<com:TClientScript PradoScripts="effects" />
<com:TStyleSheet>
  .red_background {
    background-color: red;
  }
</com:TStyleSheet>

<com:TRadioButtonList ID="radio1" RepeatColumns="2">
  <com:TListItem Value="2" Text="toggle Checkbox 1" />
  <com:TListItem Value="3" Text="hide Label 1" />
  <com:TListItem Value="4" Text="show Label 1" />
  <com:TListItem Value="9" Text="focus TextBox 1" />
  <com:TListItem Value="10" Text="scroll to CheckBox 1" />
  <com:TListItem Value="11" Text="add red_background class to TextBox 1" />
  <com:TListItem Value="12" Text="remove red_background class from TextBox 1" />
  <com:TListItem Value="14" Text="set the 'disable' attribute on TextBox 1" />
  <com:TListItem Value="15" Text="change the background color of Panel 1" />
  <com:TListItem Value="16" Text="prepend and append some content inside Panel 1" />
  <com:TListItem Value="17" Text="prepend and append some content outside Panel 1" />
  <com:TListItem Value="18" Text="replace Panel 1 with some plain text" />
  <com:TListItem Value="19" Text="remove TextBox 1" />
  <com:TListItem Value="22" Text="trigger a click event on Panel 1" />
</com:TRadioButtonList>

<br/><com:TActiveButton ID="button1" OnCallback="buttonCallback" Text="callback!" />

<h2>Results</h2>

<table>
  <tr>
    <td>Checkbox 1:</td>
    <td><com:TCheckBox ID="check1" Text="Checkbox 1" /></td>
  </tr>
  <tr>
    <td>Label 1:</td>
    <td><com:TLabel ID="label1" ForeColor="Red" Text="Text of Label 1" /></td>
  </tr>
  <tr>
    <td>TextBox 1:</td>
    <td><com:TTextBox ID="txt1" Text="Sample text" /></td>
  </tr>
  <tr>
    <td>Panel 1:</td>
    <td>
      <com:TPanel ID="pan1" Style="width:100px;height:100px;background:green" Attributes.OnClick="alert('clicked on Panel1')" >
      Panel contents
      </com:TPanel>
    </td>
  </tr>
</table>

<div style="height:900px">
Thw following space is intentionally left blank for the scrolling test
</div>
</com:TContent>