root/public/javascripts/scriptaculous/test/functional/ajax_autocompleter2_test.html @ 1

Revision 1, 3.4 kB (checked in by falcon, 17 years ago)

Version one -> initial work from the laptop.

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4<head>
5  <title>script.aculo.us Autocompleter functional test file</title>
6  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
7  <script src="../../lib/prototype.js" type="text/javascript"></script>
8  <script src="../../src/scriptaculous.js" type="text/javascript"></script>
9  <script src="../../src/unittest.js" type="text/javascript"></script>
10  <style type="text/css" media="screen">
11    .selected { background-color: #888; }
12  </style>
13</head>
14<body>
15<h1>script.aculo.us Autocompleter functional test file</h1>
16
17
18
19This is an incremental Ajax autocompleter. Type something, then type a comma, than type more. This autocompleter features an indicator.<br/>
20<div id="ac1_indicator" style="display:none">NOW FETCHING RESULTS</div>
21Autocompleter ac1: <input type="text" id="ac1" autocomplete="off"/>
22<div id="ac1update" style="display:none;border:1px solid black;background-color:white;position:relative;"></div>
23
24
25<script type="text/javascript" language="javascript" charset="utf-8">
26// <![CDATA[
27  new Ajax.Autocompleter('ac1','ac1update','_autocomplete_result.html', { 
28    tokens: ',', indicator: 'ac1_indicator'
29  } );
30// ]]>
31</script>
32
33<br/><br/>
34Non-incremental Ajax autocompleter.<br/>
35Autocompleter ac2: <input id="ac2" type="text" autocomplete="off"/>
36<div id="ac2update" style="display:none;border:1px solid black;background-color:white;"></div>
37
38
39<script type="text/javascript" language="javascript" charset="utf-8">
40// <![CDATA[
41  new Ajax.Autocompleter('ac2','ac2update','_autocomplete_result.html');
42// ]]>
43</script>
44
45<br/><br/>
46Non-incremental Ajax autocompleter.<br/>
47Autocompleter ac3: <input id="ac3" type="text" autocomplete="off"/>
48<div id="ac3update" style="display:none;border:1px solid black;background-color:white;"></div>
49
50
51<script type="text/javascript" language="javascript" charset="utf-8">
52// <![CDATA[
53  new Ajax.Autocompleter('ac3','ac3update','_autocomplete_result.html');
54// ]]>
55</script>
56
57<br/><br/>
58
59Local incremental array autocompleter ac4<br/> with full-search. Type 'Jac', hit enter a few <br/>times, type 'gne'.<br/> <textarea rows=5 cols=40 id="ac4" autocomplete="off"></textarea>
60<div id="ac4update" style="display:none;border:1px solid black;background-color:white;"></div>
61
62<script type="text/javascript" language="javascript" charset="utf-8">
63// <![CDATA[
64  new Autocompleter.Local('ac4','ac4update',
65  new Array("John Jackson", "", "Jack Johnson", "", "Jane Agnews"), { tokens: new Array(',','\n'), fullSearch: true, partialSearch: true });
66// ]]>
67</script>
68<br/><br/>
69
70Local incremental array autocompleter ac5<br/> with fixed height and scrollbar. Type 'Jac', hit enter a few <br/>times, type 'gne'.<br/> <input id="ac5" type="text" autocomplete="off"/>
71<div id="ac5update" style="display:none;border:1px solid black;background-color:white;height:50px;overflow:auto;"></div>
72
73<script type="text/javascript" language="javascript" charset="utf-8">
74// <![CDATA[
75  new Autocompleter.Local('ac5','ac5update',
76  new Array("John Jackson", "Jack Johnson", "Jane Agnews", "Jack Johnson", "Jane Agnews", "Jack Johnson", "Jane Agnews"), { tokens: new Array(',','\n'), fullSearch: true, partialSearch: true });
77// ]]>
78</script>
79
80
81<br /><br /><br />
82<br /><br /><br />
83<div id="debug" style="font-size:11px;"></div>
84
85</body>
86</html>
Note: See TracBrowser for help on using the browser.