A
A
AlexSer2018-06-04 16:05:33
Yii
AlexSer, 2018-06-04 16:05:33

What is the correct way to use Ajax or Pjax along with the model when saving data?

There is a personal model which is an ActiveRecord model. New personal save form, opens in a modal window.
How to bind with Ajax or Pjax so that when entering the full name and date of birth, there is a check, as soon as the user enters the full name and date of birth, a match error appears.
P / s separately from the model I understand how to do it, but how together? Che does not want to write an action in the controller, which would check for a match by full name and date of birth.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Maxim Timofeev, 2018-06-04
@AlexSer

ajax validation, unique validator

E
Evgeny Petrov, 2014-08-19
@Petroveg

Your traffic either goes through a filter, or a browser plugin like AdBlock feeds all suspicious media elements with these anti-ad rules. How did he know? By word, for example.
Try to replace the name of the picture with an abstract one, but without words like reklama, banner etc.

D
Dima Pautov, 2014-08-19
@bootd

There was the same garbage, I don’t remember what I called the picture, BUT it was adblock that was to blame for me!

K
Karina Tolstova, 2017-04-09
@tommoro

Yes, disable the internal ad blocker and voila - everything works!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question