-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
49 lines (44 loc) · 2.75 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
<!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>Proto!MultiSelect Demo</title>
<link rel="stylesheet" href="css/test.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/prototype/scriptaculous.js" type="text/javascript" charset="utf-8"></script>
<script src="js/facebooklist.js" type="text/javascript" charset="utf-8"></script>
<!--<script src="js/textboxlist.js" type="text/javascript" charset="utf-8"></script>-->
</head>
<body id="test">
<h1>Proto!MultiSelect 3.0</h1>
<div id="text"></div>
<form action="test_submit" method="get" accept-charset="utf-8">
<ol>
<li id="facebook-list" class="input-text">
<label>FacebookList input</label>
<input type="text" value="" id="facebook-demo" />
<div id="facebook-auto">
<div class="default">Type the name of an argentine writer you like</div>
<ul class="feed">
<li value="1">Zuriel Barron</li>
<li value="2">Osvaldo Tierra</li>
</ul>
</div>
<!-- These two writers will be added when the control is loaded -->
</li>
</ol>
</form>
<div id="button_container">
<button onclick="alert($F('facebook-demo'));return false;">Get Values</button>
</div>
<script language="JavaScript">
document.observe('dom:loaded', function() {
// init
tlist2 = new FacebookList('facebook-demo', 'facebook-auto',{ newValues: true, regexSearch: false });
var myjson = [{"caption":"Manuel Mujica Lainez","value":4},{"caption":"Gustavo Nielsen","value":5},{"caption":"Silvina Ocampo","value":6},{"caption":"Victoria Ocampo", "value":7},{"caption":"Hector German Oesterheld", "value":8},{"caption":"Olga Orozco", "value":9},{"caption":"Juan L. Ortiz", "value":10},{"caption":"Alicia Partnoy", "value":11},{"caption":"Roberto Payro", "value":12},{"caption":"Ricardo Piglia", "value":13},{"caption":"Felipe Pigna", "value":14},{"caption":"Alejandra Pizarnik", "value":15},{"caption":"Antonio Porchia", "value":16},{"caption":"Juan Carlos Portantiero", "value":17},{"caption":"Manuel Puig", "value":18},{"caption":"Andres Rivera", "value":19},{"caption":"Mario Rodriguez Cobos", "value":20},{"caption":"Arturo Andres Roig", "value":21},{"caption":"Ricardo Rojas", "value":22}];
myjson.each(function(t){tlist2.autoFeed(t)});
});
</script>
</body>
</html>