0

I have my yii login form ajaxvalidation works perfectly in normal mode, But it didn't works on popup mode, i used

$this->renderPartial('login',array('model'=>$model)); instead of $this->render('login',array('model'=>$model)); .

I think the problem is with the render partial,it not loads the necessary java scripts for ajax validation. How can i implement popup login form with ajaxvalidation?

1
  • Do you have any javascript errors? Perhaps you should load the javascript files in the main view, not in the popup.
    – adamors
    Jun 7, 2012 at 7:19

1 Answer 1

3

Cant say without seeing the entire view file. Anyway try the following code to load the javascripts on renderPartial

$this->renderPartial('login',array('model'=>$model),false,true);
1
  • 1
    it works when we put the below line before renderpartial call you sugested, anyway thanks, it helpd :) 'Yii::app()->clientScript->scriptMap=array('jquery.js'=>false,);'
    – arun
    Jun 7, 2012 at 7:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.