Skip to content

Instantly share code, notes, and snippets.

Created April 27, 2012 19:20
Show Gist options
  • Select an option

  • Save anonymous/2512024 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/2512024 to your computer and use it in GitHub Desktop.
HTML_form
<html>
<head>
<style type="text/css">
#autoComplete {
width:300px;
padding-bottom:2em;
font-size:1em;
position: relative;
}
#autoComplete .yui-ac-content {
max-height:200px;overflow:auto;overflow-x:hidden;
_height:200px; /* ie6 */
}
</style>
<!-- Combo-handled YUI CSS files: -->
<link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.8.0r4/build/autocomplete/assets/skins/sam/autocomplete.css">
<!-- Combo-handled YUI JS files: -->
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js&2.8.0r4/build/element/element-min.js&2.8.0r4/build/tabview/tabview-min.js"></script>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js&2.8.0r4/build/datasource/datasource-min.js&2.8.0r4/build/autocomplete/autocomplete-min.js"></script>
<!-- Combo-handled YUI JS files for JSON: -->
<script type="text/javascript" src="http://yui.yahooapis.com/combo?2.8.0r4/build/yahoo-dom-event/yahoo-dom-event.js&2.8.0r4/build/connection/connection-min.js&2.8.0r4/build/json/json-min.js"></script>
<script type="text/javascript">var myServer="<$strLower(HttpWebRoot)$>";</script>
<script type="text/javascript" src="employee_lookup_ajax.js"></script>
</head>
<div class="yui-skin-sam">
<div class="yui-content">
<div id="autoComplete">
<input type="text" id="xCreator" name="xCreator" />
<div id="container_xCreator"></div>
</div>
<script>loadAuthorList("xCreator","container_xCreator","authorValue_xCreator","json_group_lookup.hcst");</script>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment