Тёмный
No video :(

AJAX Crash Course (Vanilla JavaScript) 

Traversy Media
Подписаться 2,3 млн
Просмотров 721 тыс.
50% 1

In this video we will dive into AJAX with Vanilla JS and NO JQUERY. We will examine the XHR object and how it works. This is a beginner friendly tutorial for anyone that has very basic JavaScript knowledge. We will make xhr requests to a txt file, local json files, an external API and even PHP files.
CODE: Files for this course
www.traversymed...
BECOME A PATRON: Show support & get perks!
/ traversymedia
ONE TIME DONATIONS:
www.paypal.me/t...
FOLLOW TRAVERSY MEDIA:
/ traversymedia
/ traversymedia
/ traversymedia
NEW DISCORD CHAT SERVER:
/ discord

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 835   
@TraversyMedia
@TraversyMedia 7 лет назад
Around 8:00 I said "videos". I meant to say "files". Everything is in this one video. I did not get to the libraries but we will do that in a separate video. Hope you guys enjoy!
@saadmahbub8787
@saadmahbub8787 7 лет назад
Can you do a video on isotope and masonry please ? will be really helpful ,thanks :)
@ezeamaka
@ezeamaka 7 лет назад
Another great tutorial again as usual. Please you promised to make a tutorial for beginners on how to create and upload website to the sever!!! Am still waiting - Thanks
@priyaranjan1733
@priyaranjan1733 7 лет назад
Thanks a lot , Could you make some video for Javascript Flavours, like vanilla :P
@ethashamuddinmohammed1255
@ethashamuddinmohammed1255 4 года назад
Try GoLang instead of NodeJS. You have a good thought process
@FordExplorer-rm6ew
@FordExplorer-rm6ew 4 года назад
How do we use ajax in production without CORS errors? Github pages? Heroku? Netlify? Which of these will work?
@yeahorightbro
@yeahorightbro 7 лет назад
I disable adblock when I watch this channel. Brad, you're a hero.
@TraversyMedia
@TraversyMedia 7 лет назад
Thank you very much for that :)
@braed6202
@braed6202 7 лет назад
I just whitelisted his channel too :)
@gabgab841
@gabgab841 6 лет назад
i disable adblock donate to patreon and get his udemy courses
@freedomfighter3686
@freedomfighter3686 6 лет назад
You mean you enabled adblock :) since disabling adblock means ads are free to come.
@gjuteodoro6910
@gjuteodoro6910 6 лет назад
Lol?
@sanulankaraya9997
@sanulankaraya9997 3 года назад
Every time I hear that intro music, I feel really confident.
@shivrajnag12
@shivrajnag12 3 года назад
It gives me similar vibes as Netflix
@jesusgonzalez7059
@jesusgonzalez7059 2 года назад
I know, right?! It makes me feel like everything is going to be okay.
@attilakatona2137
@attilakatona2137 7 лет назад
this is the best AJAX course on the net by far Brad!
@TraversyMedia
@TraversyMedia 7 лет назад
Thanks
@TrendForJesus
@TrendForJesus 7 лет назад
Yes thank you brad
@maskman4821
@maskman4821 6 лет назад
Definitely the best ajax tutorial!
@dansintean6820
@dansintean6820 6 лет назад
better than Bucky's
@ililiilili3366
@ililiilili3366 5 лет назад
@@TraversyMedia hey, since i started front-end learning, i always wondered how do one ever connnect front end to back-end. I think i have a better idea now. i watched some parts but i understood. Will practice the content of this video later on. Thanks, dont erase it plz (LOL).
@dhandayalprasad2267
@dhandayalprasad2267 4 года назад
wow. He explains very complicated stuffs so smoothly.
@dunzek943
@dunzek943 4 года назад
Of course man, this is Brad Traversy you're talking about
@luciusrex
@luciusrex 6 лет назад
@14:45 for those wondering, the fx open is inherited from the XMLHttpRequest constructor and can be found under the prototype (__proto__) property.
@jamie10333
@jamie10333 3 года назад
This is one of the most straight forward tutorials I've watched for JavaScript. Most videos post either pure basics or pretty advanced tutorials. Been searching for a video like this. Thanks for this video.
@davza9629
@davza9629 2 года назад
This is in my opinion the BEST video explaining AJAX on RU-vid. I have scoured for hours and no other videos have explained the concept in such an understandable way. Thank you so so much. This is going to be so much help in Web dev classes at school. You, sir are a life saver.
@vegasvato55
@vegasvato55 6 лет назад
I learned more with your videos in an hour than in all of the weekends of the past months.. I like the way you take the time to break things down and explain and diddle with the sections of code... The best i have ever seen... The way you play with things and break them is fantastic...
@mofe620
@mofe620 3 года назад
Just finished this, right after watching the JSON Crash Course. Two hours ago, JSON and Ajax didn't just make sense to me (I had used them a number of times, without understanding anything 🤧). Right now, I totally understand everything. Thanks a lot Brad. You're amazing.
@delicious_cracker
@delicious_cracker 3 года назад
Passed 4 Years, I still watching this. Love Brad.
@mohamadfarid4097
@mohamadfarid4097 5 месяцев назад
after 6 years still you are the best
@ajazmiah
@ajazmiah 7 лет назад
Can't explain how happy I was to see this pop up in my notification. Couldn't wait to come home and watch it as if it was a game I recorded while I was away! Lol. Great video 👍
@TraversyMedia
@TraversyMedia 7 лет назад
Thats awesome, I hope you liked it
@tigere01
@tigere01 5 лет назад
In just an hour, I now quite get the XHR object and the kind of situations where it is useful i.e. display data from a url without having to do a full page reload. Thanks a tonne Brad.
@CSCoreDecoded
@CSCoreDecoded Год назад
Video intro 0:00 ; What is AJAX 0:57 ; XmlHttpRequest (XHR) Object 4:06 ; Ways to make AJAX Call 5:07 ; Starting with AJAX 7:24 ; onreadystatechange 18:42 ; onprogress & onerror 22:35 ; AJAX Dealing with JSON 26:40 ; AJAX with External API 37:20 ; AJAX with PHP 45:15 ; Connect to DB 1:01:12 ; Outro 1:09:10 ;
@saadwasil
@saadwasil 5 лет назад
The most beneficial hour I've spent in the past few days. Thanks, Brad.
@pedrosousa6576
@pedrosousa6576 7 лет назад
Woah how did you know I was looking for an Ajax tutorial?! I even watched your Json video yesterday and now you posted this. You're the man! Thanks brad
@claudiobras22
@claudiobras22 4 года назад
Before i watch the full video, i hit the like button and then i watch the video, because i always know there something good i'm gonna learn from your tutorial.
@iancarr3923
@iancarr3923 6 лет назад
These videos are invaluable. They serve as a great guide to html, css, ajax, etc particularly when reviewing videos from other providers
@giddeo
@giddeo 3 года назад
Really good, solid tutorial. I'm doing a course currently and this was just baffling to me at first but you've just made it so much more accessible and easy to understand. Excellent, thank you.
@lyubon9492
@lyubon9492 8 месяцев назад
I can't believe that only in one hour I understood what AJAX is and how it works with JSON, API's and PHP as well. Amazing video thank you so much!!!
@dunzek943
@dunzek943 4 года назад
Brad hacks away (no pun intended) at the abstract and mysterious words, terms, and practices that surrounds programming, returning to us with mentally-digestible tutorials. Thanks Brad!
@andresalvarez7303
@andresalvarez7303 2 года назад
THANK YOU! It's so hard to find a good web dev tutorial nowadays that doesn't rely heavily on libraries (jQuery) or skips over many core concepts of how and WHY things work the way they do on the web.
@matthewrossilini5808
@matthewrossilini5808 4 года назад
You're videos are so great for someone (me) who is just beginning to learn web dev (green as hell). You are so thorough in explaining everything, and you do it so clearly. Thank you!
@bradcres1120
@bradcres1120 5 лет назад
Idk if it's just me but I think doing AJAX with vanilla JS is a lot simpler than doing it with jQuery. Thanks Brad!
@DanielBurchfield
@DanielBurchfield 3 года назад
Great work through. I am an AJAX noob to be accurate, and this was a great way to get to know the tech. Much appreciated.
@simple_lide
@simple_lide 4 года назад
Thank you, Brad. Your tutorials are awesome. You actually do things from scratch, and explain every step. Also, I like those types of videos as - "been showed - now practice", short and valuable. Great! Wish you all the best from Ukraine! :)
@limitless1692
@limitless1692 3 года назад
This was the best ever Asynchronous javascript tutorial I ever watched . I finally understand how this Asynchronous instructions work . All that fog of confusion lifted up while watching and practicing your video . Really really really thank you very much Sir !
@shivamahlawat6702
@shivamahlawat6702 2 года назад
God level video....really was in need to get data out of a database without the page getting refreshed...A BIG THANKS!
@mugilankathavarayan8168
@mugilankathavarayan8168 11 месяцев назад
This video changed my life, I learned from this video 5 years age, perfect one for beginners.
@quachaihiep3251
@quachaihiep3251 2 года назад
After few times coding and messing thing up , i finally got used to this request. Thank a ton, man
@briman113
@briman113 5 месяцев назад
I just finished this tutorial and yes I struggled and yes it took me many hours 😁 Got everything working and happy I stuck with it. Thanks for all the great content.
@alexanderfrost1476
@alexanderfrost1476 2 года назад
This is the best JSON tutorial ive seen so far. So easy and straight to the point. I only stopped following at point 45mins because of the last examples using php. Still understood what he was doing because of the awesomeness of the earlier examples.
@shatterking215
@shatterking215 5 лет назад
This really helped me learn the ins and outs of AJAX! It was also a nice refresher for php & MySQL. Thanks Brad!
@imanidiot2180
@imanidiot2180 5 лет назад
In case you are wondering, the JSON.parse() function is used to convert a _"string"_ into a _"Javascript object"_ . Because when you receive data from a web server, it is always in text(string). However, make sure the text is in JSON format. Hope this helps.
@durgaprasadnagarkatte6470
@durgaprasadnagarkatte6470 4 года назад
This tutorial is too good to learn the basics of making get and post requests with JavaScript. Thanks a lot.
@ErnestGWilsonII
@ErnestGWilsonII 7 лет назад
OMG Another awesome video from Traversy Media! Does he ever sleep or does he just make cool videos around-the-clock?
@rogeriorodrigues4210
@rogeriorodrigues4210 5 лет назад
Traversy is a true hero
@bialcus69
@bialcus69 5 лет назад
He's mr. robot
@amrik9614
@amrik9614 5 лет назад
he sleeps
@luckylove72
@luckylove72 3 года назад
Looking at how much he work he will have tough time in 50s. I already lost my spinal cord. Now I am ghost.
@mynameis3005
@mynameis3005 7 лет назад
thank you for taking the time off to create such good content. you have inspired me to help share my knowledge in the future.
@danielioanitescu2134
@danielioanitescu2134 4 года назад
Brad, I wish you all the best, bud! You really are a teacher and your methods are nice, clean and easy to understand for all of us. Wish all the best for you and your family and keep it up with the good work. We need you 😁
@PeterJohnsonWales
@PeterJohnsonWales 4 года назад
Love your stuff man! You've got a very lucid style. As a 60+ year old hobbyist Pascal & old type PHP coder, I'm finding making the leap to JavaScript tricky. You're really helping!! Thank you.
@freiyarobloxbedwars208
@freiyarobloxbedwars208 Год назад
Tysm for this tutorial definitely help me alot to create interactive stuff without reloading the actual page :D!
@zaitunimpinga
@zaitunimpinga 2 года назад
Brad, you've made me a front end developer. This video changed my way of Programming. Thank you for this amazing content.
@dustinhammack7024
@dustinhammack7024 6 лет назад
Thank you so much for this video Brad!! I have been struggling to understand AJAX, and this video just cleared up all the confusion I've had about it. I can't thank you enough!
@ladywebber1726
@ladywebber1726 3 года назад
You're such a great instructor. Thank you for teaching me a whole lot from your videos. :) very inspiring as well.
@csiwele617
@csiwele617 5 лет назад
Thanks again Brad, Your videos are a staple to my personal and professional journey as a programmer. Every hour spent on your videos is invaluable.
@iwanwilaga
@iwanwilaga 4 года назад
Hey Brad, im into ajax crafts nowadays, but what is even more important is that i just read an interview with you on a blog and.. yeah!..it's truly real and inspiring, much respect (even more than had before (which was already not a little tho', haha ! ) ) . Best wishes from Hungary
@codedynamics1
@codedynamics1 5 лет назад
Dude, i dont know who you are but your teaching method is just phenomenal. I have been searching yt for Ajax videos because i didnt quite grasp how it fully works and i got a load of grown asian dudes rambling and blubbering like over exicited little kids. You are great. Keep going! I am subscibed!
@wiztemple
@wiztemple 7 лет назад
The level of confidence I have now is because I know there is Brad Traversy, I know I can learn anything with you; Thank you Brad, i'm grateful!
@lequangnghi194
@lequangnghi194 Год назад
After reading the doc from MDN and came here for your tutorial, everything is so clear now Thanks Brad! 🙏
@rkireev
@rkireev 6 лет назад
Cant say thank you enough. Going through coding Bootcamp and I find your videos extremely helpful. Best on youtube for a fact. You are the man! Keep up the good work!
@ferhatbeztout1447
@ferhatbeztout1447 2 года назад
the quickiest 1h of my life , don't apologize
@eemeelyo529
@eemeelyo529 3 года назад
This is QUALITY. I learn better in your video than in other online course. Thank you very much for doing this tutorial.
@yitzchaksviridyuk932
@yitzchaksviridyuk932 4 года назад
Brad, thank you very much. I sincerely appreciate this content and the time and effort you've invested into it. I basically never watch ads, but here, I left them running. I'm working on a couple web development projects right now, and I'll probably buy one of your JS courses on Udemy. Thanks again. :) Don't mind this section... just me making a couple bookmarks: 1:06:19 - using PHP file to fetch info from database and send it to html file as JSON 1:07:40 - parsing and using received JSON in html file Interesting to me, since I just use PHP files, taking info directly, even with AJAX. Brad's way seems safer.
@danielrgh
@danielrgh 2 года назад
Incredible Course After 4 years, good job
@renzycode
@renzycode 2 года назад
For all ajax tutorials i've been watch, this is so precise and the best. Thank you Man
@oghenefokethompson7407
@oghenefokethompson7407 4 года назад
Best video Channel for learning programming thanks for helping my life
@rabiumuhammedeffect423
@rabiumuhammedeffect423 Год назад
finally coming back after soo many years of absence
@steffenlaurens8280
@steffenlaurens8280 6 лет назад
Marvelous step by step tutorial bro, your name ought to be on the AJAX Tutors Hall Of Fame.
@drewconroy5938
@drewconroy5938 7 лет назад
Great to see this video.I have been going to brush up on my JQuery for awhile now(from your tutorials) I think your jQuery tutorials with this tutorial back to back should do the trick. AJAX is one of those things I have always wanted to dig into deeper but never have. So, this will get me started...
@LeeroyGgJenkins
@LeeroyGgJenkins 3 года назад
Thank you so much for not stopping at the simple stuff. I needed that last example for a project and I could not find an example anywhere!
@surinfarmwest6645
@surinfarmwest6645 6 лет назад
Brad, Started watching at 09:15 and just finished at 19:26. Glad to report I now have displayed in my AJAX5.html "Nosey Neighbour, Loud Wife, Bloody Dogs ....... It was worth the trek at the end. Thank you for keeping me sane! West
@FahadKhan-rp3rz
@FahadKhan-rp3rz 3 года назад
Currently, I'm at an intermediate level in HTML CSS, and JS and noob about back-End that how PHP & MySQL works and relative b/w them. So, today I feel relaxed due to knowing the full-stack web app work somehow. Thanks for the video.
@ademineshat
@ademineshat 5 лет назад
Hello Brad. This is my First Comment, I wanted to thank you very very much for you awesome work! I've watched to many RU-vidrs, I didn't know Traversymedia until I bought some of your Courses on Udemy. I really don't have the words to describe how much I'am thankful. Best regards, Ademi
@SimPwear84
@SimPwear84 7 лет назад
I have not watched it yet but I know Brad is dope and this is gonna help me a lot. I have been waiting for this from you. Thanks bud!!
@user-oq6hx9pw2y
@user-oq6hx9pw2y 9 месяцев назад
Hello Mr.Brad Traversy, i finished the video and just wanna say THANK YOU!!!
@speakenglishwithjoe2023
@speakenglishwithjoe2023 3 года назад
You have really made my day with this crash course. OMG very easy to understand. Thanks so much for this video.
@rabiumuhammedeffect423
@rabiumuhammedeffect423 Год назад
but, anyways, thanks for everything, i really appreciate all the lessons. i can now code in all web languages, including python and c++. your tutorials really helped as a startup. THANKS SOOOO MUCH
@Kalerblind
@Kalerblind 6 лет назад
Among all the things I'm impressed by, the HD Audio and Video is the best i've seen in any tutorial videos :)
@user-tm2qn6vk3v
@user-tm2qn6vk3v 2 года назад
Extremely useful!! That's what i've been searching for. Thank you for the time spent on this lesson!
@danielk1560
@danielk1560 4 года назад
Thank you, This was my most well spent 1-2 hours in the last half a year!
@gauravarya2419
@gauravarya2419 6 лет назад
Thank you very much for focussing on sound fundamentals using plain javascript rather than any framework.
@brandonikjoo
@brandonikjoo 7 лет назад
Thank you so much about the video. It's the best AJAX tutorial video I've ever have!
@amysheeter877
@amysheeter877 2 года назад
You are the best instructor, and you always make sure to explain exactly how things work and the "behind the scenes" of everything. Literally going right now to buy your Udemy courses! Thank you so much for sharing your knowledge with us.
@MuhammadAli-wi2sr
@MuhammadAli-wi2sr 3 года назад
Thanks for the PHP Part Really helped me for my Project that I have to submit tomorrow to get internship as a Web Developer. I Watched the entire course it was helpful. Thanks ,Brad
@fadhilh3931
@fadhilh3931 3 года назад
Thank you brad, really appreciate what you're doing, now I understand how AJAX works with the server side language like PHP. Cheers from Depok, Indonesia.
@AS-zw4lk
@AS-zw4lk 6 лет назад
Brad. You're a stud! Thanks for this crash course. The php part was especially good.Cheers! Keep word wrap on in VSCode: file->preferences->settings "editor.wordWrap":"on" Had to add php executable for intellisense to work: file->preferences->settings "php.validate.executablePath":"C:/xampp/php/php.exe"
@donaldabel6228
@donaldabel6228 4 года назад
This was very helpfull for the understanding of AJAX. Thanks. I haven't started PHP yet but I understood the principle
@Jakhongir84
@Jakhongir84 7 лет назад
Bard, you are the best man. This is exactly what i needed. Thanks for an amazing tutorials! Cant wait to go home and enjoy your content.
@HuguinhoPotter
@HuguinhoPotter 6 лет назад
oh man! I really enjoy your explaining and clarity! never thought I could enjoy AJAX cause I find it very confusing for my habilities.. Now I'm encouraged to search, learn, and code. Thank you so much, Brad. Kudos
@FreeJ4ck
@FreeJ4ck 2 года назад
Thank you soooo much for this tutorial. You made me understanding the whole usage of ajax in one hour 😳 never got that much knowledge in such a short time. The part of combining it with php is so powerful 👍👍🥇 it is the basic you need to do everything you want.
@NedumEze
@NedumEze 3 года назад
Ah! You have no idea how helpful this tutorial is. Thank you so very much.
@foxjonesofficial
@foxjonesofficial 2 года назад
Brad make the best tutorials.
@cameracoverage3837
@cameracoverage3837 2 года назад
You give me my whole semester in one video. 👏👏👍👍❤️❤️ Waiting for more....
@chuckcoughlin3112
@chuckcoughlin3112 Год назад
Thank you for doing the MySQL insert and fetch. This is something I really wanted to understand and have not been able to find any good resources. Although I am sure there is a lot more for me to learn, this video has really helped me to get and overview of what is involved. Also you present things very well and make learning enjoyable. You are a GREAT instructor. (I have watch many of your videos on RU-vid and purchased many of your courses on Udemy)
@hematogen50g
@hematogen50g 3 года назад
Thank you. It is very well structured tutorial. You are right about learning vanilla stuff first, it is so much easier to understand.
@peterpark9143
@peterpark9143 3 года назад
Great video! Learned a lot!! First time to run Apache server and connect to MySQL, even able to use phpmyadmin!!! only took 30 times repeat and retry!!! Oh of course AJAX too!! Thanks
@IamEffiom
@IamEffiom 3 года назад
Mehn, didn't know you exist until now I'm feeling really confident Thanks a bunch 👍
@katlegomatamela
@katlegomatamela 3 года назад
One of the best courses i have ever seen
@caroldanvers265
@caroldanvers265 6 лет назад
I had fun doing this Vanilla JS Ajax tutorial. Excellent Brad!!!
@belinhobeli9569
@belinhobeli9569 5 лет назад
Dude, you are simply great. Never has anyone made me understand this better.
@alialsubaie8529
@alialsubaie8529 6 лет назад
Yes! Please continue with part 2 of this video. I’m exactly at that level where I don’t know to mix php with Ajax. That would make my website much better. Thanks anyway, keep up the good work.
@chiaramariadedominicis458
@chiaramariadedominicis458 7 лет назад
Thank you SO much, you are my new guru! I am slowly watching all your awesome videos. Cheers from Italy!
@tomihawk01
@tomihawk01 7 лет назад
I first heard about AJAX about 10 years ago but never really understood what it was. All I knew was Javascript (at the time) was a horrible language with a minefield of differences between browsers and that put me off investigating further. I'm glad I now finally understand what it is and how it works.
@osoriodanny
@osoriodanny 4 года назад
Awesome! The best AJAX tutorial out there. Now, I'm going to watch the Axios crash course. Thank you
@nikitakadu425
@nikitakadu425 3 года назад
Best Tutorial on this earth 🌍 🙏Thank you so much Traversy Media 🙏
@hailedagmawi8109
@hailedagmawi8109 Год назад
Thank you so much. it was hard for me to learn ajax just from reading w3school document. now am going to go back to w3schools page and see if i can understand it all.
@Gabriel-V
@Gabriel-V 2 года назад
Thank you for this explanations. RU-vidrs like you, spending their time to explain web development instead of using their free time for themselves, man... It means world to me. Btw, I really liked the quick styling:) I spend much more time styling, and ends up terrible:) ha ha ha ha ha. Loved it. Keep it up!
@officiallyRitterLost
@officiallyRitterLost 5 лет назад
When you think about it, AJAX is pretty simple. Thanks for the good explanation Brad!
@sergeysokolov9679
@sergeysokolov9679 5 лет назад
You're a great professional indeed. Hello from Russia.
@iWaxxy
@iWaxxy 4 года назад
Thank you for the awesome videos, Brad. I haven't found a video that explains Ajax this well yet.
Далее
Fetch API Introduction
30:54
Просмотров 498 тыс.
JSON and AJAX Tutorial: With Real Examples
40:45
Просмотров 1,8 млн
what will you choose? #tiktok
00:14
Просмотров 7 млн
The Importance of Specialization in Coding
7:13
Просмотров 222 тыс.
What Is Ajax?
10:03
Просмотров 323 тыс.
JSON Crash Course
24:49
Просмотров 1 млн
Async JavaScript Part 1: What is AJAX?
21:25
Просмотров 119 тыс.
Learn JSON in 10 Minutes
12:00
Просмотров 3,2 млн
what will you choose? #tiktok
00:14
Просмотров 7 млн