title: Codeigniter Load a view using post and ajax
body: <p>I have this ajax code:</p>
  
  <pre><code>$("#comparar").click(function() {
      var oTable = $('#propiedades').dataTable();
      var sData = $('input', oTable.fnGetNodes()).serialize();
      console.log(sData);
      $.ajax({
          type : "POST",
          url : "/zcms/comparar/propiedades",
          data : sData,
          dataType: 'json',
          success: function(){
           $('#profitSignal').modal('hide');
          // window.location="http://btsignals.com/index.php/zcms/performance";
           }
      });
      // cierra ajax contactG
  
      return true;
  });
  </code></pre>
  
  <p>And this is my controller:</p>
  
  <pre><code>function propiedades()
  {
      $data['title'] = 'Comparar Propiedades';
      $data['properties1'] = $this -&gt; zcms_properties_model -&gt; get_property_comparativa();
  
      $data['main_content'] = 'zcms/comparativa';
      $propertiesdetalle = $data['properties1'];
  
  
      //$this-&gt;output-&gt;enable_profiler(TRUE);
      $this -&gt; load -&gt; view('zcms/template', $data);
  }
  </code></pre>
  
  <p>is working but i can get the view, but i can see the page in the response of firebug here is a image <img src="https://i.stack.imgur.com/nj0ky.png" alt="enter image description here"></p>
  
  <p>please excuze my english, </p>