title: ajax cakephp succes
body: <p>How do I translate succes in cakephp with js helper ?</p>
  
  <pre><code>$.ajax({
  //(...)
  success:function (data, textStatus) {
                          $("#city-wrap").html(data);
                          $("#AdCityId").selectbox();
                      },
  });
  return false; 
  </code></pre>
  
  <p>I tried This in cakephp no success :</p>
  
  <pre><code> $this-&gt;Js-&gt;get('#AdCountryId1')-&gt;event('change', 
  $this-&gt;Js-&gt;request(array(
      'controller'=&gt;'cities',
      'action'=&gt;'getByCountry'
      ), array(
      'update'=&gt;'#city-wrap',
      'success'=&gt; '$("#AdCityId").selectbox()';, &lt;= here is what I need !
      'async' =&gt; true,
      'method' =&gt; 'get',
      'dataExpression'=&gt;true,
      'data'=&gt; $this-&gt;Js-&gt;serializeForm(array(
          'isForm' =&gt; true,
          'inline' =&gt; true
          ))
      ))
  );
  </code></pre>
  
  <p>Regards</p>