title: How do I place a magento autocomplete mini search box outside the magento installation?
body: <p>I would like to put a magento mini search box in my main website, so that when a search is made, it redirects to the magento search results page. This global search is in the header and helps to find products fast on my Codeigniter main site. I was able to achieve part of this, by placing the following code:</p>
  
  <pre><code>&lt;form method="get" action="http://pathtomagento/catalogsearch/result/" id="search_mini_form"&gt;
  &lt;div class="form-search"&gt;
      &lt;label for="search"&gt;Buscar:&lt;/label&gt;
      &lt;input type="text" class="input-text" value="" name="q" id="search" autocomplete="off"&gt;
      &lt;button class="button" title="Buscar" type="submit"&gt;&lt;span&gt;&lt;span&gt;Buscar&lt;/span&gt;&lt;/span&gt;&lt;/button&gt;
      &lt;div class="search-autocomplete" id="search_autocomplete" style="display: none;"&gt;&lt;/div&gt;
      &lt;script type="text/javascript"&gt;
          //&lt;![CDATA[
          var searchForm = new Varien.searchForm('search_mini_form', 'search', 'Buscar en el catálogo...');
          searchForm.initAutocomplete('http://pathtomagento/catalogsearch/ajax/suggest/', 'search_autocomplete');
         //]]&gt;
      &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>The autocomplete function of the search box doesn't work, which is a main issue for me since it's a really useful feature. My main website is full of jQuery, and I know Magento uses prototype. So I managed to include the following scripts that seem to be required by the autocomplete Magento search box:</p>
  
  <pre><code>&lt;script type="text/javascript" src="pathtomagento/js/prototype/prototype.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="pathtomagento/js/varien/js.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Still no luck! I don't get any Console errors in Firebug, but I don't get any AJAX or autocomplete response either. Does anyone know what I could be missing?</p>