如何使用 js helper 在 cakephp 中翻译成功?
$.ajax({
//(...)
success:function (data, textStatus) {
$("#city-wrap").html(data);
$("#AdCityId").selectbox();
},
});
return false;
我在 cakephp 中试过这个没有成功:
$this->Js->get('#AdCountryId1')->event('change',
$this->Js->request(array(
'controller'=>'cities',
'action'=>'getByCountry'
), array(
'update'=>'#city-wrap',
'success'=> '$("#AdCityId").selectbox()';, <= here is what I need !
'async' => true,
'method' => 'get',
'dataExpression'=>true,
'data'=> $this->Js->serializeForm(array(
'isForm' => true,
'inline' => true
))
))
);
问候