blob: 5cacf2ef3dce2fee0d85028dd12708063b56c685 (
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
|
<com:TForm>
<h1>Custom Login</h1>
<com:TActiveLinkButton ID="showLogin" Attributes.OnClick="new Effect.Appear('loginBox')" Text="Login" />
<div id="loginBox" style="display: none;">
<div id="loginLoader" style="display: none;">Please Wait...</div>
<span>Username:</span><br />
<com:TActiveTextBox ID="Username" />
<com:TRequiredFieldValidator
ID="validator1"
ControlToValidate="Username"
ValidationGroup="login"
Text="...is required" Display="Dynamic"/>
<br />
<span>Password:</span><br />
<com:TActiveTextBox TextMode="Password" ID="Password" />
<com:TActiveCustomValidator
ID="validator2"
ControlToValidate="Password"
Text="*"
OnServerValidate="validateUser" ValidationGroup="login" />
<br />
<com:TActiveLinkButton ID="checkLogin" OnCallback="doLogin" Text="Login" ValidationGroup="login" />
<com:TActiveLinkButton Attributes.OnClick="new Effect.Fade('loginBox')" Text="Close" />
</div>
<com:TJavascriptLogger />
</com:TForm>
|