title: jquery response in displaying the view page through post
body: <p>jquery</p>
  
  <pre><code>var js={"employer":$employer,"district":$district,"state":$state};
  
       $.post(url+"/beneficarydetailsdisp",js,function(data){
                                          $("#noofbeneficiaryplacedtable").html(data.result);
              },"json");
  </code></pre>
  
  <p>I am able to load the view page but it is displayed in firebug not on the browser page?</p>
  
  <p>firebug response</p>
  
  <pre><code>{"result":"&lt;!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\"&gt;\r\n&lt;html crossriderapp3491=\"true\" xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\"&gt;&lt;head id=\"ctl00_Head1\"&gt;\r\n&lt;meta http-equiv=\"content-type\" content=\"text\/html; charset=UTF-8\"&gt;&lt;title&gt;\r\n\tJob Placement\r\n&lt;\/title&gt;\r\n&lt;!-- Page layout --&gt;\r\n&lt;link href=\"http:\/\/localhost\/******\/\/css\/StyleSheet.css\" rel=\"stylesheet\" type=\"text\/css\ .....contd"
  </code></pre>
  
  <p>controller</p>
  
  <pre><code>$employer ="Hass Enterprises";
      $district ="ADILABAD";
      $state ="ANDHRA PRADESH";
      $data['noofbeneficiaryplaceddetails']=$this-&gt;homemodel-&gt;getnoofbeneficiaryplaceddetails($employer,$district,$state);    
  
       $str=$this-&gt;load-&gt;view('noofbeneficiaryplaced',$data,true);
       $value=array(
              'result'=&gt;$str
  
          );
          echo json_encode($value);}
  </code></pre>
  
  <p>i am not able to load the view ? what is the problem with the code</p>