title: CodeIgniter + AJAX Internal Error 500
body: <p>I'm trying to make a ajax call to one method in my Notification controller.</p>
  
  <p>My method is: </p>
  
  <pre><code>public function testeAjax()
  {
      if($this-&gt;chamadaAjax())
          echo 'Ajax';
      else
          echo 'Form';
  }
  </code></pre>
  
  <p>The <code>$this-&gt;chamadaAjax()</code> simply perform and <code>$this-&gt;input-&gt;is_ajax_request()</code></p>
  
  <p>And this is my Ajax call:</p>
  
  <pre><code>$.ajax({
        type: "POST",
        url: '&lt;?php echo base_url(); ?&gt;/office/notificacao/testeAjax',
        success: function(html) {
          alert(html);
        }
      });
  </code></pre>
  
  <p>I have a form with two buttons, one for form submit and another for ajax request.</p>
  
  <p>The thing is that when I add some data to the ajax like: data: "nome=Gerep", and call it, I receive a <code>Internal Erro 500</code></p>
  
  <p>When I don't send any data, it works, it returns me <em>form</em> when submitted and <em>ajax</em> when I call ajax request.</p>
  
  <p>Any ideas?</p>
  
  <p><em>EDIT</em>
  Using FireBug here is what I get:</p>
  
  <pre><code>f.support.ajax.f.ajaxTransport.sendjquery-1.7.1.min.js:4
  f.extend.ajaxjquery-1.7.1.min.js:4
  testenotificacao:140
  (anonymous function)notificacao:113
  onclick
  </code></pre>