have a controller action that with handle your request from the ajaxSubmitbutton
public function ActionAjaxSubBtn{
//your ActiveRecord model
$model = new DBmodel();
//ajaxSubmitButton uses POST method (default)
if(isset($_POST['form')){
$model->attributes($_POST['form']);
if($mode->save)
//you can set flash message or just echo the message directly
//this message will be display in your ajax options array
// ajaxSubmitButton('label','#',array('update'=>'#form-update'))
echo "your message have been saved successfully";
else echo "error in message pls re-submit the form ";
}
else{
$this->render('form',array('model'=>$model));
}
}