title: Using jQuery Ajax methods display a response from a PHP page?
body: <p>I'm trying to implement the Jquery .ajax method to simplify the ajax in my website.</p>
  
  <p>Here is the function I'm working with:</p>
  
  <pre><code>function autoComplete(q, succ)
  {
      $.ajax({type:"GET",
          url: "search.php",
          data: "q="+q,
          success: succ
      }); 
  }
  
  $('input#auto_results').live('keyup', function() {
  
      var text = $('input#auto_results').val();       
  
      autoComplete(text,
          function(data) 
          { 
  
          alert(data);
  
          }); 
  }); 
  </code></pre>
  
  <p>The response on the PHP page is simply:</p>
  
  <pre><code>echo "response";
  </code></pre>
  
  <p>So I figure that it should alert the response when the function is called, on 'keyup'.
  Sadly, nothing occurs. I must be doing something wrong, I am just not sure what it is.</p>