R
R
Repirnna2020-10-22 08:23:16
Flask
Repirnna, 2020-10-22 08:23:16

How to track input in real time in unpit?

There is input[login] , and it must be unique. It is required to intercept the writing, and when there is already such a login, it should write that such a login already exists before the user presses the register button. How can this be done with Flask/Jinja?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2020-10-22
@Repirnna

There is no way to do it with Jinja. You need to write an input handler in the field in javascript and send an ajax request when it fires, and on the backend make a handler for these requests that checks for the presence of such a login in the database and returns true or false.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question