About the submit way of search page

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;

});

Maybe this link can help you:

http://api.jquery.com/submit/

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?