Yii Framework Forum: ActiveForm update? - Yii Framework Forum

Jump to content

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

ActiveForm update? Rate Topic: -----

#1 User is offline   james2010 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 19-February 10

Posted 13 May 2010 - 01:01 PM

i have got a Active Form. and its works fine.

if i press the button i got my error message (so its works). but the problem if i change something in my

field . i get a Ajax-Request and can see the right answer with firebug

but only with firebug :-( so didnt get it on my element (form)

because so if i press the button the will update (#form) but i like to update (#form) as well when i change

something in my field.


 <?php $form = $this->beginWidget('CActiveForm', array('enableAjaxValidation'=>true,
                'clientOptions' => array( 'validateonsubmit' => true, ),
               

            ),array('id'=>'user-Anmelden'),


 echo CHtml::submitButton('Anmelden',
                        array(
			'ajax' => array(
			'type'=>'POST', //request type
			'url'=>"url", //url to call
			'update'=>'#form',
                        array('id' => 'submitAnmelden')
		))); ?>

0

#2 User is offline   james2010 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 19-February 10

Posted 14 May 2010 - 04:47 AM

working now.
-1

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