title: An Ajax Autocomplete Textfield In Drupal 7 doesn't work in Chrome
body: <p>An Ajax Autocomplete Textfield In Drupal 7 works in Firfox, but doesn't work in IE and Chrome.
  The following error appears:</p>
  
  <blockquote>
    <p>An AJAX HTTP error occured. HTTP Result Code: 200 Debugging information follows.<br>
    Path: <a href="http://localhost/drupal/en/example/autocomplete" rel="nofollow noreferrer">http://localhost/drupal/en/example/autocomplete</a><br>
    StatusText: OK<br>
    ResponseText: {"admin":"admin","alex":"alex","apple":"apple"}</p>
  </blockquote>
  
  <pre><code>function clubform_menu() { 
    $items['example/autocomplete'] = array(
      'page callback' =&gt; '_module_name_autocomplete',
      'access arguments' =&gt; array('access example autocomplete'),
      'type' =&gt; MENU_CALLBACK
    );   
    return $items; 
  } 
  
  function _module_name_autocomplete($string) {
  $matches = array();
  $return = db_query("SELECT name FROM users where lower(name) like '".$string."%' LIMIT 10");
    // add matches to $matches 
    foreach ($return as $row) {
      $matches[$row-&gt;name] = check_plain($row-&gt;name);
    }
    // return for JS
    drupal_json_output($matches);
  }
  
  ...
          $form['editclub']['club_name'] = array( 
            '#title' =&gt; t(''), 
            '#type' =&gt; 'textfield', 
            '#description' =&gt; t(''), 
            '#autocomplete_path' =&gt; 'example/autocomplete',
            '#weight' =&gt;15, 
            '#size' =&gt; 30, 
           );
  ...
  </code></pre>
  
  <p>The output in Firefox is the following: <img src="https://i.stack.imgur.com/FijeD.png" alt="enter image description here"></p>