Using jQuery to Update a Page Without Refresh (Part 1 of 2)

  Рет қаралды 99,956

Pretty Printed

Pretty Printed

Күн бұрын

Пікірлер: 65
@prettyprinted
@prettyprinted 4 жыл бұрын
Join my free course on the basics of Flask: prettyprinted.com/introflask
@nosduhz
@nosduhz 7 жыл бұрын
More Ajax, Jquery, Frontend/Backend with Flask videos! These are excellent and a subject that is not touched on enough! Marrying the frontend with the backend is constantly left out of the programming tutorial discussion.
@dimitrisfilippou
@dimitrisfilippou 7 жыл бұрын
Dude how can you be so precise haha , whenever i want to add something new to my project there you are :p thanks a lot!
@prettyprinted
@prettyprinted 7 жыл бұрын
haha I can sense what projects my viewers are working on.
@freshbread5373
@freshbread5373 3 жыл бұрын
You don't know how much this helps!
@omarelmohri
@omarelmohri 6 жыл бұрын
seeing this for the second time, it feels great when I can integrate this into my application. You are doing an amazing job here
@prettyprinted
@prettyprinted 6 жыл бұрын
Thanks! I appreciate it.
@sromanski
@sromanski 7 жыл бұрын
Your videos are so well done. I really like how they deconstruct the fundamentals of web development.
@prettyprinted
@prettyprinted 7 жыл бұрын
Thanks! I try to do more than just show you me writing code. Everything I type has a reason.
@gobentley
@gobentley 7 жыл бұрын
You're an amazing teacher! Always enjoy your presentations. This one was especially timely. Thanks very much.
@prettyprinted
@prettyprinted 7 жыл бұрын
Thanks!
@rameshgaming1020
@rameshgaming1020 Жыл бұрын
Good explaination brother!!!
@javierbosch1338
@javierbosch1338 7 жыл бұрын
awesome. great video! Now we need some lazy loading to add content with flask as backend!!!! Highly requested tutorial as well!!!
@prettyprinted
@prettyprinted 7 жыл бұрын
I need to get back to making three videos per week, so yeah I can do that too. I'll release the HTML video on Wednesday, and then I'll release the lazy load video on Friday. Thanks for the idea!
@javierbosch1338
@javierbosch1338 7 жыл бұрын
Pretty Printed awesome!!. looking to learn how to efficiently manage loading data in an efficient manner like facebook loading. that would be highly appreciated and a great add to the tutorials!
@ziad7337
@ziad7337 Жыл бұрын
Thank you so much
@kalaakaaram
@kalaakaaram Жыл бұрын
This was super awesome.. i need same approach for updating content without reloading ..but the content is huge a deeply nested json... If you have any tutorial for getting data from deeply nested json in python flask and javascript api.. please share... Thanks for the wonderful tutorial.
@luvrahooo
@luvrahooo 3 жыл бұрын
Nice video thanks. I wanted to have something similar with autocomplete and select and then add to table in database which then updates the Table in template without refresh of page. Do you have any tutorial on autocomplete with wtf flask forms?
@Sirojiddinaka
@Sirojiddinaka Жыл бұрын
Thanks for your video, just wanted to ask about how to seamlessly update the table data from server? Say, in every second or 2 seconds? Just need to update the table value entirely.
@dr-mnizam
@dr-mnizam Жыл бұрын
This video shows update data every 5 seconds from google sheet database: kzbin.info/www/bejne/eXKmpICufcafl6s
@AnshumanSharmadev
@AnshumanSharmadev 4 жыл бұрын
Great video. I have a query - How do we do this thing in the DataTables? I'm getting the data and it appends to the table but I don't see any pagination in my datatable. It would be great if you could suggest something. Thanks.
@prabhatbhartola9191
@prabhatbhartola9191 2 жыл бұрын
HI, I have a doubt. The route "/update" is returning jsonify. How is the webpage not being redirected?
@russellculver2757
@russellculver2757 5 жыл бұрын
Hey, having a hard time with this one. I'm using Flask-WTForms and a SelectField. The ID is being passed correctly to the backend route, however all form data is 'None'. It's also a cell in an interated table, but given it's grabbing the ID correctly I don't think that's an issue.
@realworldcodingapplications
@realworldcodingapplications Жыл бұрын
can this upate also be seen by other users / in different window? without refreshing?
@oluwatosinoseni7839
@oluwatosinoseni7839 2 жыл бұрын
Is there a way to use flash with this to show notification or something
@nbme-answers
@nbme-answers 7 жыл бұрын
hey! awesome!! thanks anthony!
@prettyprinted
@prettyprinted 7 жыл бұрын
You're welcome! Thanks for watching.
@realfranzconradvonhotzendo952
@realfranzconradvonhotzendo952 3 жыл бұрын
Thanks a lot m8 keep up the cool content!!
@th1200yu
@th1200yu 4 жыл бұрын
How to add jinja2 filters (like safe | nl2br etc) in req.done part where your returning the text.
@vincemcgaj628
@vincemcgaj628 7 жыл бұрын
Again great video! Thank you so much!!
@prettyprinted
@prettyprinted 7 жыл бұрын
You're welcome! Thanks for watching.
@MR-jj5dn
@MR-jj5dn 4 жыл бұрын
Struggling with how to implement CSRF functionality to this AJAX call. Anyone been able to do it with this example? The example Anthony works in this video works, but I need to make it resistant to cross site request forgery attacks. By the way, is flask wtforms susceptible to XSS or CSS attacks, or are they same?
@crazytux2999
@crazytux2999 7 жыл бұрын
Nice! Didn't know AJAX was simple as that!
@prettyprinted
@prettyprinted 7 жыл бұрын
It could get more complicated. :)
@nosduhz
@nosduhz 7 жыл бұрын
Get more complicated! Serialization, passing sensitive data, scalable Ajax with multiple ajax functions on the same page, using an API Ajax forms. I want it all!
@prettyprinted
@prettyprinted 7 жыл бұрын
lol I'm working on it.
@eddurguti
@eddurguti 6 жыл бұрын
This is great, what if I wanted to update the input field , for example name field
@prettyprinted
@prettyprinted 6 жыл бұрын
You can use jQuery to update anything on the page. $(input_selector_here).val('whatever you want to appear in the input');
@jamesmuriuki3785
@jamesmuriuki3785 5 жыл бұрын
Always awesome!!! Thanks
@paristar3079
@paristar3079 5 жыл бұрын
Can I load a page without refreshing but it's url should change
@zsirothehero4330
@zsirothehero4330 Жыл бұрын
Can I still use this? Or is there an updated version of this?
@rangabharath4253
@rangabharath4253 Жыл бұрын
awesome 🙂
@mrsterbenblack9270
@mrsterbenblack9270 5 жыл бұрын
How do you display the latest data in the web from database when data is inserted into a database?
@prettyprinted
@prettyprinted 5 жыл бұрын
You have access to the data before it's sent to the backend, so you can use JavaScript to do anything you want with the data.
@philandrew6691
@philandrew6691 6 жыл бұрын
Hello great tutorial, how about without clicking any button and every time the admin changes somethings related to the server or database, it will also automatically update the client side without pressing refresh? is it possible to do it in jquery?
@prettyprinted
@prettyprinted 6 жыл бұрын
Yep that's possible. You'll just need events on the things in the UI that can trigger the database update.
@rahulbhardwaj6487
@rahulbhardwaj6487 3 жыл бұрын
@@prettyprinted Could you please make video on this topic . It will really helpful for us . Thank you
@shango1964
@shango1964 7 жыл бұрын
Suggestion: Add "part 1" to this video's name and the follow up video "part 2".
@prettyprinted
@prettyprinted 7 жыл бұрын
Done
@sisyphus_619
@sisyphus_619 7 жыл бұрын
could you do a tutorial on inserting multiple data into the database using flask so that you dont have to do it manually? some automated data insert stuff. Thanks in advance if you do it.
@prettyprinted
@prettyprinted 7 жыл бұрын
SQL is probably better suited for this. Do you have a specific example of what you're trying to do?
@kobitarkotha6211
@kobitarkotha6211 4 жыл бұрын
Brilliant
@glennmateus1977
@glennmateus1977 6 жыл бұрын
Hey bro! Whats up ? What is the language used to do the backend part in this video?
@prettyprinted
@prettyprinted 6 жыл бұрын
Flask. It's a Python framework.
@jhicinternational
@jhicinternational 7 жыл бұрын
Thanks!
@prettyprinted
@prettyprinted 7 жыл бұрын
You're welcome!
@sumir729
@sumir729 4 жыл бұрын
How can i delete those data without refreshing the page
@MuhammadMoazzamhere
@MuhammadMoazzamhere 5 жыл бұрын
how can we do this in Django? any help would be appreciate
@prettyprinted
@prettyprinted 5 жыл бұрын
I'll consider a Django version.
@jmpersic
@jmpersic 4 жыл бұрын
@@prettyprinted Django version please! Awesome video.
@raylandgivins26
@raylandgivins26 5 жыл бұрын
is this code still available?
@prettyprinted
@prettyprinted 5 жыл бұрын
Yeah, you can get it here: prettyprinted.com/l/ccg
@outgrown3094
@outgrown3094 5 жыл бұрын
it doesnt work
@forithall2417
@forithall2417 6 жыл бұрын
It doesnt execute the /update..............
Using jQuery to Update HTML Without Refresh (Part 2 of 2)
7:46
Pretty Printed
Рет қаралды 17 М.
How to POST request in a Python Website using AJAX ? [Flask & Django]
22:07
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 37 МЛН
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 127 МЛН
МАИНКРАФТ В РЕАЛЬНОЙ ЖИЗНИ!🌍 @Mikecrab
00:31
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 39 МЛН
BREAKING: jQuery V4 Is Here (YES REALLY)
12:30
Theo - t3․gg
Рет қаралды 186 М.
JSON and AJAX Tutorial: With Real Examples
40:45
LearnWebCode
Рет қаралды 1,8 МЛН
The Biggest Mistake Beginners Make When Web Scraping
10:21
John Watson Rooney
Рет қаралды 114 М.
Send Form Data to Flask using jQuery |  Python
13:05
Soumil Shah
Рет қаралды 9 М.
Django Form Submission Without Page Refresh Using Ajax
21:47
Code With Tomi
Рет қаралды 27 М.
Django & HTMX - Dynamic Form Creation and Submission
24:36
BugBytes
Рет қаралды 29 М.
Update Data Using Jquery Ajax PHP And Mysql
13:58
Developer Zone
Рет қаралды 130 М.
Web Application Development in Python | Ajax and JavaScript
16:53
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 37 МЛН