blob: 710c208fe6b24cd5a2e51a7e6780c4fa1d286081 (
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
38
39
40
|
<!DOCTYPE html>
<html>
<!--
Copyright 2007 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.
-->
<!--
-->
<head>
<title>goog.ui.ac.Remote</title>
<script src="../base.js"></script>
<script>
goog.require('goog.ui.ac.Remote');
</script>
<link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" href="../css/autocomplete.css">
</head>
<body>
<h1>goog.ui.ac.Remote</h1>
Google Buzzwords:<br>
<input type="text" id="txtInput" style="width:500px"><br>
<p>
This data is being pulled from the server at
<a href="autocompleteremotedata.js">autocompleteremotedata.js</a>.
</p>
<p>
Ideally the server would perform a search on the query and would only
return relevant results; however, this response is static.
</p>
<script>
var input = document.getElementById('txtInput');
var ac = new goog.ui.ac.Remote('autocompleteremotedata.js',
input);
</script>
</body>
</html>
|