summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.page
blob: 28f27b8fd3a9d882ef05ba27d903c089feaadd89 (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>

<a id="showLogin" href="#" onclick="new Effect.Appear('loginBox')">Login</a>
<div id="loginBox" style="display: none;">

	<div style="height:1em">
	<div id="loginLoader" style="display: none;">Please Wait...</div>
	</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" />
	<a href="#" onclick="new Effect.Fade('loginBox')">Close</a>

</div>


</com:TForm>