fhding
(Hi5miss)
1
The default submit way of the search page is GET. But i want to use "post" to submit my value.
And the main problem is the serialize of data i don’t know how to modify the code to satisfy my demand.
$(’.search-form form’).submit(function(){
$.fn.yiiGridView.update('apilogs-grid', {
data: $(this).serialize()
});
return false;
});
sensorario
(Sensorario)
2
Maybe this link can help you:
http://api.jquery.com/submit/
balrok
(Der Coole Carl)
3
hello i’m not very sure but i guess it will work with:
$('.search-form form').submit(function(){
$.fn.yiiGridView.update('apilogs-grid', {
type: 'POST',
data: $(this).serialize()
});
return false;
});
cause the type=>‘POST’ style is used somewhere else…
(edit: in
CHtml::ajaxLink($model->name,
array('show'),
array('type'=>'POST',
'data'=>array('id'=>$model->name),
'update'=>'#preview',
'beforeSend' => 'function(){...
)
what’s the problem with serialization?