Python + Flask - Part 4 - Validating Registration Form with Javascript

preview_player
Показать описание
In this video, we encounter Javascript for the first time, using it to contact
our Python application (API) and validate some of the information in our registration form - namely if the user being registered already exists.

00:00 - Intro
02:56 - Restart Application
03:47 - Set up and link Javascript file and Axios library
07:58 - Writing the Javascript
13:20 - Write the Python code to check if the user exists (route)
18:15 - Handling the response from our Python code
18:55 - Write Javascript code to display validity message
20:57 - Integrate Javascript function into HTML
22:35 - Testing and Troubleshooting
27:50 - Handling events in Javascript
30:46 - Testing and Troubleshooting
31:52 - Wrap Up

#python #javascript #api
Рекомендации по теме
Комментарии
Автор

Thank you for this great work. your easy explanation and real time showing the code is truly helping to undestand.

アハメドロマン
Автор

I got a problem. When I write the email in the box that already exists I get the normal message that the user already exists and is fine, but when I write a new email after deleting the previous one, the message disappear and then I click the submit button and the message appears again and doensnt let me submit even though the email is now different.

edtrejo
Автор

Hi! I didn’t understand why do we use jsonify + where will we use the dictionary that we created with jsonify

footballvideos
Автор

How do I get the app.models and Doctor?

MILAN_S
visit shbcf.ru