-
Notifications
You must be signed in to change notification settings - Fork 16
/
test-dev.html
95 lines (74 loc) · 3.24 KB
/
test-dev.html
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Validation Test</title>
<script src="lib/jquery-1.3.2.js" type="text/javascript"></script>
<script src="lib/jquery.form.js" type="text/javascript"></script>
<!--<script src="src/config.js" type="text/javascript"></script>-->
<!--<script src="src/custom-types.js" type="text/javascript"></script>-->
<script type="text/javascript">
// $(function() {
// $('#signup-form').ajaxForm(
// {
// dataType: 'json',
// success: function(data) {
// if (data.validation_failed) {
// Vanadium.decorate(data.validation_failed);
// }
// return false;
// }
// }
// )
// })
</script>
<script src='src/vanadium-jquery.js' type='text/javascript'></script>
<script src='src/vanadium-hashmap.js' type='text/javascript'></script>
<script src='src/vanadium-container.js' type='text/javascript'></script>
<script src='src/vanadium-form.js' type='text/javascript'></script>
<script src='src/vanadium-base.js' type='text/javascript'></script>
<script src='src/vanadium-utils.js' type='text/javascript'></script>
<script src='src/vanadium-dom.js' type='text/javascript'></script>
<script src='src/vanadium-element.js' type='text/javascript'></script>
<script src='src/vanadium-instance.js' type='text/javascript'></script>
<script src='src/vanadium-types.js' type='text/javascript'></script>
<script src='src/vanadium-init.js' type='text/javascript'></script>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class=":container">
<form id="signup-form" action="/test_submit.json" name="f" method="get" class=":container">
<div id="messages">
<div id="global-advice" style="display:none"></div>
</div>
<div id="email_and_name" class=":container">
<label class="desc" for="email">email: </label>
<input name="email" id="email" type="text"
class="field text large :only_on_blur :required;;email_advice :email;;email_advice">
<span id="email_advice"
style="display:none">Please enter a valid email address. For example [email protected] .</span>
<br/>
<label class="desc" for="name">name: </label>
<input name="name" id="name" class=":required :alpha :wait;500 :min_length;5 :ajax;/user_exists.json" type="text">
<br/>
</div>
<div id="passwords" class=":container">
<label class="desc" for="pass">password: </label>
<input name="password" id="pass" type="password" class=":required :min_length;5 :wait;100">
<div style="display:none">OK</div>
<br/>
<label class="desc" for="repeat_pass">repeat password: </label>
<input name="repeat_password" id="repeat_pass" type="password"
class=":required :advice;global-advice :min_length;5 :same_as;pass :wait;100">
<br/>
</div>
<div id="tos" class=":container">
<label class="desc" for="accept">Accept out TOS: </label>
<input id="accept" class="checkbox :accept" type="checkbox" value="1">
</div>
<input type="submit" value="submit"/>
<input class=":format;/(va)*/i" type="text">
</form>
</div>
</body>
</html>