title: How to render view after ajax in Yii
body: <p>I'm trying to make a search by fiield using ajax request. This is my <strong>Controller:</strong>  </p>
  
  <pre><code>public function actionUpdateAjax()
      {
  
          $model=new DeliveyInfo();
          $rows =Yii::app()-&gt;db-&gt;createCommand()
              -&gt;select('fio, date, status')
              -&gt;from('delivey_info')
              -&gt;where('code=:code', array(':code'=&gt;$_POST['word']))
              -&gt;queryRow();
  
          $this-&gt;renderPartial('_ajaxContent',array(
              'model'=&gt;$model,'rows'=&gt;$rows,
          ));
       }
  </code></pre>
  
  <p>This is my view where I use ajax:</p>
  
  <pre><code>&lt;?php
  /* @var $this DeliveyInfoController */
  /* @var $model DeliveyInfo */
  ?&gt;
  &lt;div id="info"&gt;&lt;/div&gt;
  &lt;p&gt;
      &lt;input id="word" type="text" name="word" /&gt;
      &lt;input id="YII_CSRF_TOKEN" type="hidden" name="YII_CSRF_TOKEN" /&gt;
      &lt;?php echo CHtml::link('Advanced Search','#',array('class'=&gt;'search-button')); ?&gt;
  &lt;/p&gt;
  &lt;?php
  Yii::app()-&gt;clientScript-&gt;registerScript('find', "
  
  $('.search-button').click(function(){
      var url = '/deliveyInfo/UpdateAjax';
      var word = $('#word').val();
      $.ajax({
          url: url,
          dataType: 'json',
          type: 'POST',
          data: {
              word: word,
              'YII_CSRF_TOKEN' : '" . Yii::app()-&gt;request-&gt;csrfToken . "'
          },
  
       })
      });
  ");
  
  ?&gt;
  </code></pre>
  
  <p>I have answer in console but why _ajaxContent view doesn't show after renderPartial?</p>