forked from thewebfellas/protomultiselect
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
120 lines (111 loc) · 4.64 KB
/
index.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>AutoTextboxList Demo</title>
<link rel="stylesheet" href="css/multiselect.css" type="text/css" media="screen" title="Test Stylesheet" charset="utf-8" />
<script src="js/prototype/prototype.js" type="text/javascript" charset="utf-8"></script>
<script src="js/autotextboxlist.js" type="text/javascript" charset="utf-8"></script>
<style>
#button_container
{
margin-left: 70px;
margin-bottom: 30px;
}
form
{
border: 1px solid #999;
margin: 50px;
padding: 20px 30px 10px;
}
form ol
{
font: 11px "Lucida Grande", "Verdana";
margin: 0;
padding: 0;
}
form ol li.input-text
{
margin-bottom: 10px;
list-style-type: none;
border-bottom: 1px dotted #999;
padding-bottom: 10px;
}
form ol li.input-text label
{
font-weight: bold;
cursor: pointer;
display: block;
font-size: 13px;
margin-bottom: 10px;
}
form ol li.input-text input
{
width: 500px;
padding: 5px 5px 6px;
border: 1px solid #999;
}
div.holder
{
width: 90%
}
</style>
</head>
<body id="test">
<h1>AutoTextboxList 0.12</h1>
<div id="text"></div>
<form action="test_submit" method="get" accept-charset="utf-8">
<ol>
<li id="autotextboxlist" class="input-text">
<label>AutoTextboxList</label>
<input type="text" value="" id="demo" />
</li>
</ol>
</form>
<div id="button_container">
<button onclick="alert($F('demo'));return false;">Get Values</button>
</div>
<script type="text/javascript">
document.observe('dom:loaded', function()
{
/* Initialize the control */
var json_feed = [
{ value: "Zuriel Barron", description: "Company Name • [email protected]" },
{ value: "Osvaldo Tierra", description: "Company Name • [email protected]" },
{ value: "Manuel Mujica Lainez", description: "Company Name • [email protected]" },
{ value: "Gustavo Nielsen", description: "Company Name • [email protected]" },
{ value: "Silvina Ocampo", description: "Company Name • [email protected]" },
{ value: "Victoria Ocampo", description: "Company Name • [email protected]" },
{ value: "Hector German Oesterheld", description: "Company Name • [email protected]" },
{ value: "Olga Orozco", description: "Company Name • [email protected]" },
{ value: "Juan L. Ortiz", description: "Company Name • [email protected]" },
{ value: "Alicia Partnoy", description: "Company Name • [email protected]" },
{ value: "Roberto Payro", description: "Company Name • [email protected]" },
{ value: "Ricardo Piglia", description: "Company Name • [email protected]" },
{ value: "Felipe Pigna", description: "Company Name • [email protected]" },
{ value: "Alejandra Pizarnik", description: "Company Name • [email protected]" },
{ value: "Antonio Porchia", description: "Company Name • [email protected]" },
{ value: "Juan Carlos Portantiero", description: "Company Name • [email protected]" },
{ value: "Manuel Puig", description: "Company Name • [email protected]" },
{ value: "Andres Rivera", description: "Company Name • [email protected]" },
{ value: "Mario Rodriguez Cobos", description: "Company Name • [email protected]" },
{ value: "Arturo Andres Roig", description: "Company Name • [email protected]" },
{ value: "Ricardo Rojas", description: "Company Name • [email protected]" }
];
new AutoTextboxList('demo', 'demo-autotextboxlist', {
newValues: true,
regexSearch: false,
feed: json_feed,
defaultMessage: "This is the default message",
sortResults: true,
autoResize: true,
encodeEntities: true,
results: 20,
visibleResults: 5
});
});
</script>
</body>
</html>
<!-- vi: set noexpandtab -->