summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/active-controls/protected/pages/CustomValidatorByPass.page
blob: 54e6e39cf9f97e98b6d22bd127cdcdce508c3ce8 (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="$('#loginBox').fadeIn()">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="$('#loginBox').fadeOut()">Close</a>

</div>


</com:TForm>