Кто может описать как работает autocomplete.js
А точнее почему у меня не работает
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/site/misc/autocomplete.js?b"></script>
</head>
<body>
<div id="edit-author-wrapper" class="form-item">
<label for="edit-author">Автор:
</label>
<input id="edit-author" class="form-text form-autocomplete" type="text" value="" size="30" name="author" maxlength="60" autocomplete="OFF"/>
</div>
<input id="edit-author-autocomplete" class="autocomplete autocomplete-processed" type="hidden" disabled="disabled" value="http://localhost/site/user/autocomplete"/>
</body>
</html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/site/misc/autocomplete.js?b"></script>
</head>
<body>
<div id="edit-author-wrapper" class="form-item">
<label for="edit-author">Автор:
</label>
<input id="edit-author" class="form-text form-autocomplete" type="text" value="" size="30" name="author" maxlength="60" autocomplete="OFF"/>
</div>
<input id="edit-author-autocomplete" class="autocomplete autocomplete-processed" type="hidden" disabled="disabled" value="http://localhost/site/user/autocomplete"/>
</body>
</html>
Проверил, javascript коректно подгружается.
Комментарии
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/site/misc/jquery.js?b"></script>
<script type="text/javascript" src="/site/misc/drupal.js?b"></script>
<script type="text/javascript" src="/site/misc/autocomplete.js?b"></script>
</head>
<body>
<div class="form-item" id="edit-author-wrapper">
<label for="edit-author">Автор: </label>
<input type="text" maxlength="60" name="author" id="edit-author" size="30" value="" class="form-text form-autocomplete" />
</div>
<input class="autocomplete" type="hidden" id="edit-author-autocomplete" value="http://localhost/site/user/autocomplete" disabled="disabled" />
</body>
</html>
Заработало !!! Я его взломаю )