How to POST request in a Python Website using AJAX ? [Flask & Django]

preview_player
Показать описание
In this video, you will learn to perform POST request without refreshing the page, using AJAX, which will work in any Python Web Framework

#Flask #Django #POST REQUEST

Connect with me with:

🔥 Comment below if you want to see more videos in that style

👍 Subscribe to start your Python Developer / DevOps Engineer journey here:

Links:

My Personal website:

Timeline of the video:
00:00 - 04:17 - Introduction - Write a basic Flask App
04:18 - 06:30 - Import jQuery
06:31 - 09:46 - Button Click in HTML that calls JS Function
09:47 - 14:34 - AJAX Request
14:35 - 19:00 - Catch the sent data on Server Side
19:01 - 22:06 - Examples of what you can do after POST request is performed
Рекомендации по теме
Комментарии
Автор

Thanks so much! This really helped me with my CS50 final project!🦆

rekabffej
Автор

An update about where to get the code. I've initialized to migrate all my code snippets into one repository named codesnippets. Every copy&paste code snippet will be located there in the suitable directory as it is more manageable for me instead of locating them in my own website. Larger projects (i.e Minesweeper game) are exceptional, they will have their own repository links.
Get the code from the Github link in the description and enjoy watching! :)

jimshapedcoding
Автор

Dude, I'm in CS50 working on my final project and I needed to learn how to use jQuery to do AJAX because what was taught in class wasn't sufficient for the AJAX that I want to do for my project. Your video helped me so much to understand how to do this! The way that you explained everything by going step by step and giving showing the results of your code at each step, then building on it just made it click. Thank you!!!

rekabffej
Автор

Great video. Really clear and first time I really understood how to use this.

hotcrossbun
Автор

This will help me in my blog app for quick liking and disliking a post : )
Thanks Jim sir for this video

techwithrg
Автор

Man you are amazing! Very clear explanation . Thank you <3

Dziejkoo
Автор

Lovely video, helped me finish my pet project 🎉❤🎉

MrSmart-tpko
Автор

Gained lot of knowledge from it.... your teaching style is Superb !

adityavaste
Автор

how to fetch data from the back end after submitting a post request asynchronously in flask. please make a tutorial on that.

maazshaikh
Автор

I watch most of the video but none of them is not working please... How to add a search system to flask app whereby if for example an admin search for something he can get the feedback

Kennethlumor
Автор

i tried your way of specify URL for ajax. not working. I tries '/create_file', not working. I created a creatfile.py and use 'createfile.py' for ajax URL, not working. what is wrong

yanhualiu
Автор

Thanks! A very informative video as always! I'm curious about using AJAX outputs in conjunction with this. For example, after the user has entered something to the input and pressed a button, we can show the result on the page without refreshing. Is that even possible?

ansonnn_
Автор

Please and please I request from you to do a video on how to add a search 🔎 systems to the flask app but you didn't mind me up to now. But please help me 😢

Kennethlumor
Автор

Nice. Could you do the same without Flask?

patriciagiramia