[development] autocomplete_path not working in search box

Ámon Tamás tamas at amon.hu
Sun May 21 11:17:00 UTC 2006

Ámon Tamás írta:
> hi,
> I try to put some autocomplete function for the search box. I putted the
>  '#autocomplete_path' => 'search/autocomplete',
> line to the search_box function, but it not put the this line
> <script type="text/javascript" 
> <src="/drupal/misc/autocomplete.js"></script>
> to the page.
> I use the same thing on the search page and it is working. What is the 
> solution?

Ok I find it. In the phptemplate engine the search box is calles later 
then drupal_get_html_head(). If I put the search_box() function it is 
working before drupal_get_html_head()

Ámon Tamás

More information about the development mailing list