Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 1589 by [email protected]: jquery autocomplete not displaying
dynamic <ul> list when typing in text
http://code.google.com/p/google-caja/issues/detail?id=1589
What revision of the cajoler exhibits the problem? On what browser and
OS? Chrome 23/Windows 7
What steps will reproduce the problem?
1. Copy/paste the below code into a GAS HTML file.
2. Create the HTML output from that file and go to your URL that runs it
3. Start typing in "ja", it should display a list of possible results, but
it doesn't. If you keep "ja" typed in and use the down arrow key, the
results "scroll" through. If you copy/paste into a local HTML file
(non-cajoled) it runs as expected.
Please provide any additional information below.
<!DOCTYPE html>
<html>
<head>
<link
href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css"
rel="stylesheet" type="text/css"/>
<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script src="http://code.jquery.com/ui/1.8.23/jquery-ui.js"></script>
<script>
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#tags" ).autocomplete({
source: availableTags
});
});
</script>
</head>
<body>
<div class="demo">
<div class="ui-widget">
<label for="tags">Tags: </label>
<input id="tags" />
</div>
</div><!-- End demo -->
</body>
</html>