Yii Framework Forum: Form Enableclientvalidation E Update Via Ajax - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Form Enableclientvalidation E Update Via Ajax Rate Topic: -----

#1 User is offline   realtebo 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 700
  • Joined: 03-October 12
  • Location:Ferrara

Posted 21 November 2012 - 07:01 AM

Ho un grosso problema con una form, che viene generata tramite renderPartial, e aggiornata tramite ajax.

Tenete conto che ho necessità della clientValidation.

Questo è la prima parte del container


<div class="form" id="contactListEditOuter" style='display: none;'>
    
        <?php 
            $form=$this->beginWidget('CActiveForm', array(
            	'id'=>'company-contact-edit',
            	'enableAjaxValidation'=>false,
                'enableClientValidation'=>true, 
            	'htmlOptions'=>array(
            		'class'=>'mws-form'
            	),
            )); ?>    
    
    
        <div class="form" id="contactListEditInner" >    
            <?php 
                $this->renderPartial('_formContactEdit', 
                                      array('model'=>CompanyContact::model(), 'companyId' => $model->id), 
                                      false, // false = fa l'echo automatico
                                      false ) ; ?>
        </div>
   
   
       <?php $this->endWidget(); ?>	
</div>

Il computer non ragiona, ma ha sempre ragione.
Ricordalo quando fai il debug
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users