Yii Cjui Dialog

Hi Everyone,

         I have found a new solution for the following Problems in Yii

              1.$(dialog) is not a function.

              2.Cannotinitialize dialogs on prior to initalization.

If you are loading a page via ajax and using some widgets inside the cjuidialog you will get the above errors which will make you so frustrated sometimes.At last I found a solution.

                    Yii::app()->clientScript->scriptMap['jquery.js'] = false;

		Yii::app()->clientScript->scriptMap['jquery-min.js'] = false;

		Yii::app()->clientScript->scriptMap['jquery.maskedinput.min.js'] = false;

		Yii::app()->clientScript->scriptMap['jquery-ui.min.js'] = false;

insert this code into your controller action,so the jquery will not get conflicted Your code works Fine.(Check the widget and make the respective file to false in controller).

    For example.if you are using jquery.maskedinput.min.js then make this as false.Then You can use as much jui dialogs in a single form


nice work …it’s working fine …