title: Jquery ajax call in Cake PHP 3.0
body: <hr>
  
  <p>Hi,
  I'm trying to make a ajax request to the view A from the controller B like this : </p>
  
  <p>In the view A : </p>
  
  <pre><code>var tab = new Array();
      function updateResult(){
              $.ajax({
                  type:"POST",
                  url:"&lt;?php echo Router::url(array('controller'=&gt;'B','action'=&gt;'viewresult'));?&gt;",
                  dataType: 'text',
                  async:false,
                  success: function(tab){
                      alert('success');
                  },
                  error: function (tab) {
                      alert('error');
                  }
              });
      }
  </code></pre>
  
  <p>In the controller B: </p>
  
  <pre><code>public function viewresult()
  {
  echo 'SUCCESS';
  }
  </code></pre>
  
  <p>The problem is that in the 'response' of ajax, I've 'SUCCESS' but also the entire view A, I don't understand why... 
  I want only 'SUCCESS'...</p>
  
  <p>Thanks in advance !  </p>