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
| <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<!--link rel="stylesheet" href="autocompleter-exemple-1.css" type="text/css" /-->
<script type="text/javascript" src="http://myserver/myapp/scripts/prototype.js"></script>
<script type="text/javascript" src="http://myserver/myapp/scripts/scriptaculous/effects.js"></script>
<script type="text/javascript" src="http://myserver/myapp/scripts/scriptaculous/controls.js"></script>
</head>
<body>
<form action="" method="post">
<div>
Saisissez un nom:
<input type="text" id="txtSearch" name="txtSearch"/>
</div>
<div id="txtLink" class="autocomplete"></div>
<div>
<input type="submit" name="ok" value="Hop !" />
</div>
</form>
<script type="text/javascript">
new Ajax.Autocompleter('txtSearch', 'txtLink', 'act_get_link.cfm', {paramName: 'keycode'});
</script>
</body>
</html> |
Partager