Wiki

Articles tagged with "cactiveform"X
Displaying 1-4 of 4 result(s).

A simple way to get Yii client-side form validation run when submitting by ajax

Created 2 months ago by nlacTutorials0 comments – viewed 3,521 times – ( +4 )
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created about a year ago by Antonio RamirezTutorials2 comments – viewed 9,909 times – ( +11 / -1 )
Sometimes the active form we wish to use to edit/add a new element on our database is too small and we believe that is much better to use an AJAX'ed dialog/slide form rather than reloading the page to just display one or two fields.

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Created about a year ago by RusAlexHow-tos8 comments – viewed 23,632 times – ( +16 )
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

Extending CActiveForm for some form display fixes and language tweaks

Created 2 years ago by TrejderTips0 comments – viewed 8,458 times – ( +5 )
In this simple example I'll demonstrate how to extend CActiveForm class to overload some drawing functions to achieve some commonly used fixes in forms.