Display Errors As Popups

Hi all,

I would like to display form errors in much the same way as Facebook does on their "Sign Up" form, with invalid entries highlighting the field and putting a red exclaimation mark in them. When the user clicks the field a popup is displayed with the error message. Is this possible with Yii? If so could anyone point me at a tutorial for it?

Thanks heaps.

you can us jquery validation plugin

This behaviour is entirely possible, when using models you can use the function getErrors() to return an array of errors returned by the model validation rules which you can then use to add/remove classes to your input fields allow for a change in look, you can also then add some javascript to popup when the user clicks on the field.

This can also be implemented with AJAX if you want to avoid a page refresh.

Ok thanks, will give it a try.