title: $.get data from view Codeigniter
body: <p>My js script</p>
  
  <pre><code>jQuery(".unblock").click(function(){
          var num = jQuery('.page.active').text();
          var ban_id = jQuery(this).attr('id');
  
          jQuery.get("http://127.0.0.1/auth_system_1/user_activity/delete_user_ban", { ban_id : ban_id, num : num }, function(data) {
  
                  jQuery("#ban_list").append(data);
  
          }, "json");
  
      });
  </code></pre>
  
  <p>My delete_user_ban function</p>
  
  <pre><code>function delete_user_ban()
  {
      $user_id = $this-&gt;session-&gt;userdata('user_id');
  
      $ban_id = $this-&gt;input-&gt;post('ban_id');
  
      $current_page = (int)$this-&gt;input-&gt;post('num');
  
      //$this-&gt;activity_model-&gt;delete_user_ban($ban_id);
  
      $per_page = 2;
  
      $data['ban_list'] = $this-&gt;user_activity_lib-&gt;user_ban_list($user_id, $current_page, $per_page);
  
      $this-&gt;load-&gt;view('front_end/ajax_delete_ban', $data);
  
  } 
  </code></pre>
  
  <p>and I want to return it here</p>
  
  <pre><code>&lt;!--begin ban list--&gt;
  &lt;div id="ban_list"&gt;
              &lt;?php foreach($ban_list as $value): ?&gt;
        &lt;div class="comment-box small-comment" id="info-ban-1"&gt;
            &lt;div class="photo-box"&gt;
         &lt;img src="&lt;?=$value['user_image'];?&gt;" alt="" class="photo rounded"/&gt;
         &lt;a href="#" title="" class="corner rounded"&gt;&lt;/a&gt;
            &lt;/div&gt;
            &lt;div class="comment rounded"&gt;
         &lt;div class="bg-tl"&gt;&lt;/div&gt;
         &lt;div class="avatars"&gt;
             &lt;a href="#" title=""&gt;&lt;?=$value['user'];?&gt;&lt;/a&gt;&lt;span&gt;blocked&lt;/span&gt;&lt;a href="&lt;?=base_url() . $value['ban_user'];?&gt;" title=""&gt;&lt;img src="&lt;?=$value['user_ban_image'];?&gt;" alt=""/&gt;&lt;?=$value['ban_user'];?&gt;&lt;/a&gt;
             &lt;a href="[removed];" title="Unblock" class="unblock" id="&lt;?=$value['ban_id'];?&gt;"&gt;unblock&lt;/a&gt;
         &lt;/div&gt;
            &lt;/div&gt;
            &lt;div class="both"&gt;&lt;/div&gt;
        &lt;/div&gt;
              &lt;?php endforeach; ?&gt;
  
              &lt;/div&gt;
        &lt;!--end ban list--&gt;
        &lt;?=$pagination;?&gt;
           &lt;/div&gt; 
  </code></pre>
  
  <p>What can I say, everything works good EXCEPT data not returned to  .</p>
  
  <p>If I delete this line in function :</p>
  
  <pre><code>$this-&gt;load-&gt;view(‘front_end/ajax_delete_ban’, $data);
  </code></pre>
  
  <p>and add echo ‘1’;</p>
  
  <p>it return where I want ‘1’ but content from here $this->load->view(‘front_end/ajax_delete_ban’, $data); do not return to this div ? Why ?</p>
  
  <p>I have watched response and html what return and here is html lines returning from view (no errors) but do not appear in <code>JQuery(”#ban_list”).append(data);</code></p>
  
  <p>My .get works good but only return one word, also looking response and html in firebug it show returned lines but do not add it to div? </p>
  
  <p>I have made some test : </p>
  
  <pre><code>echo '1111';
  </code></pre>
  
  <p>return OK!</p>
  
  <pre><code>echo '1111 2222';
  </code></pre>
  
  <p>do not return ?</p>
  
  <p>How to return more then one word and where is my mistake ?</p>