I have a form and I send it via ajax.
I have this code bellow and sometimes I see at firebug this
It is obvious that is from the validation or somenthing at this form.What is wrong?
 $form = $this->beginWidget('CActiveForm', array(
        'id' => 'newstatus',
        'action' => CHtml::normalizeUrl(array('control/newstatus')),
        'enableAjaxValidation' => true,
        'enableClientValidation'=>true,
        'clientOptions' => array('validateOnSubmit' => true, 'validateOnType' => false),
            ));
    ?>
.....
  <?php echo CHtml::ajaxSubmitButton('Submit', CHtml::normalizeUrl(array('control/newstatus')), array('success' => 'function(data){
                                        $("#statusvalidate").replaceWith(data)}')); ?>
[edit]As I understand there is from ajax validation,right?