Yii Framework Forum: Improved ajax validation of ActiveForm - Yii Framework Forum

Jump to content

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

Improved ajax validation of ActiveForm Only verify the chaned properties!! Rate Topic: -----

#1 User is offline   hightman 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 23-August 09

Posted 04 November 2010 - 12:50 AM

Currently, the Ajax validation of CActiveForm apply to all rules every time.
This will lead to a lot of unnecessary verification, and may even result in failure on CAPTCHA.

I strongly hope that Yii official team can fix this issue, Here is my patch for 'jquery.yiiactiveform.js'

[some contents deleted]

Now use the EActiveForm extension I wrote to achieve this functionality.

see: http://www.yiiframew...on/eactiveform/
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,359
  • Joined: 12-October 09
  • Location:Croatia

Posted 04 November 2010 - 02:48 AM

Why the need to post two times the same thing - http://www.yiiframew...-of-activeform/
Find more about me.... btw. Do you know your WAN IP?
0

#3 User is offline   hightman 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 23-August 09

Posted 04 November 2010 - 03:48 AM

Sorry, but I can not find the way to delete this post....
0

#4 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,359
  • Joined: 12-October 09
  • Location:Croatia

Posted 04 November 2010 - 04:03 AM

No need... now it will stay here as a reminder to others to NOT post the same question on multiple sub-forums...

@all
If for any reason you make a post and then decide to post it on another sub-forum that would better suit the question, do NOT post the same post again... just send a PM to anyone of the dev. team members and we will move the post where you want it... or even better you can "report" it, so the first member of the dev team that logs on the forum will see your report and act accordingly...
Find more about me.... btw. Do you know your WAN IP?
0

#5 User is offline   hightman 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 45
  • Joined: 23-August 09

Posted 13 November 2010 - 01:25 PM

Now, I wrote the EActiveForm extension, can achieve this functionality without the need for it to modify core script 'jquery.yiiactiveform.js' again.

In addition, it support for the client-side javascript validation before sending ajax request, all validation rules are converted from CValidator automatically.

See: http://www.yiiframew...on/eactiveform/
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