title: Zend Framework autocomplete
body: <p>I have problem with autocomplete. My jQuery version is 1.11.0.min, jquery ui is 1.9.1.min and ajax autocomplete for jQuery is 1.2.7. That is my jquery code:</p>
  
  <pre><code>$(function () {
                  $('.client').autocomplete({
                      source: 'ajax/getusers',
                      minLength: 2,
                      onSelect: function (suggestion) {
                      }
                  });
  
              });
  </code></pre>
  
  <p>That is my ajax/getusers action:</p>
  
  <pre><code>class AjaxController extends Zend_Controller_Action
  {
  
  public function init() {
      $this-&gt;_helper-&gt;layout()-&gt;disableLayout();
      $this-&gt;_helper-&gt;viewRenderer-&gt;setNoRender(true);
  }
  
  public function getusersAction()
  {
      $dbClients = new Application_Model_DbTable_Clients();
  
  
      $dbClients-&gt;getClientsInfoByName('v');
  }
  
  }
  </code></pre>
  
  <p>When I open ajax/getusers function getClientsInfoByName return:</p>
  
  <blockquote>
    <p>[{"id":"1","value":"vel vele","label":"vel vele"}]</p>
  </blockquote>
  
  <p>But why have error message:</p>
  
  <blockquote>
    <p>Error: SyntaxError: JSON.parse: unexpected character
    Source File: <a href="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" rel="nofollow">http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js</a></p>
  </blockquote>