According to the documentation the CHtml::ajaxButtom is supposed to generate a button that submits the form in AJAX mode. But it does not appear to be submitting the form information, the only information that gets submitted is url passed to this function, none of the input elements on the form are submitted.

Is this the expected behavior ?



It should submit the form. Make sure you have the option 'type' to be set as 'POST'.

I just added CHtml::ajaxSubmitButton.

Yup that was the issue, once added to the ajaxOptions all form data was posted.

Thanks !


p.s  CHtml::ajaxSubmitButton.  Super !