AJAX Crash Course (Vanilla JavaScript)

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 840

  • @TraversyMedia
    @TraversyMedia  7 лет назад +300

    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 лет назад +3

      Can you do a video on isotope and masonry please ? will be really helpful ,thanks :)

    • @ezeamaka
      @ezeamaka 7 лет назад +2

      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 5 лет назад

      Try GoLang instead of NodeJS. You have a good thought process

    • @FordExplorer-rm6ew
      @FordExplorer-rm6ew 4 года назад +1

      How do we use ajax in production without CORS errors?
      Github pages?
      Heroku?
      Netlify?
      Which of these will work?

  • @yeahorightbro
    @yeahorightbro 7 лет назад +408

    I disable adblock when I watch this channel. Brad, you're a hero.

    • @TraversyMedia
      @TraversyMedia  7 лет назад +68

      Thank you very much for that :)

    • @braed6202
      @braed6202 7 лет назад +4

      I just whitelisted his channel too :)

    • @gabgab841
      @gabgab841 7 лет назад +10

      i disable adblock donate to patreon and get his udemy courses

    • @freedomfighter3686
      @freedomfighter3686 6 лет назад +2

      You mean you enabled adblock :) since disabling adblock means ads are free to come.

    • @gjuteodoro6910
      @gjuteodoro6910 6 лет назад +1

      Lol?

  • @sanulankaraya9997
    @sanulankaraya9997 3 года назад +64

    Every time I hear that intro music, I feel really confident.

    • @shivrajnag12
      @shivrajnag12 3 года назад +2

      It gives me similar vibes as Netflix

    • @jesusgonzalez7059
      @jesusgonzalez7059 2 года назад

      I know, right?! It makes me feel like everything is going to be okay.

  • @jamie10333
    @jamie10333 3 года назад +23

    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 года назад +11

    This is in my opinion the BEST video explaining AJAX on RUclips. 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 лет назад +16

    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...

  • @attilakatona2137
    @attilakatona2137 7 лет назад +186

    this is the best AJAX course on the net by far Brad!

    • @TraversyMedia
      @TraversyMedia  7 лет назад +15

      Thanks

    • @TrendForJesus
      @TrendForJesus 7 лет назад

      Yes thank you brad

    • @maskman4821
      @maskman4821 6 лет назад +1

      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).

  • @mohamadfarid4097
    @mohamadfarid4097 7 месяцев назад +1

    after 6 years still you are the best

  • @dhandayalprasad2267
    @dhandayalprasad2267 4 года назад +26

    wow. He explains very complicated stuffs so smoothly.

    • @dunzek943
      @dunzek943 4 года назад +1

      Of course man, this is Brad Traversy you're talking about

  • @luciusrex
    @luciusrex 6 лет назад +20

    @14:45 for those wondering, the fx open is inherited from the XMLHttpRequest constructor and can be found under the prototype (__proto__) property.

  • @mofe620
    @mofe620 3 года назад +5

    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.

  • @ajazmiah
    @ajazmiah 7 лет назад +15

    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 👍

  • @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!

  • @tigere01
    @tigere01 5 лет назад +1

    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.

  • @pedrosousa6576
    @pedrosousa6576 7 лет назад +9

    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

  • @ErnestGWilsonII
    @ErnestGWilsonII 7 лет назад +61

    OMG Another awesome video from Traversy Media! Does he ever sleep or does he just make cool videos around-the-clock?

    • @rogeriorodrigues4210
      @rogeriorodrigues4210 6 лет назад +1

      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.

  • @lyubon9492
    @lyubon9492 10 месяцев назад

    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!!!

  • @CSCoreDecoded
    @CSCoreDecoded 2 года назад +9

    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 ;

  • @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 !

  • @giddeo
    @giddeo 3 года назад +4

    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.

  • @iancarr3923
    @iancarr3923 6 лет назад +2

    These videos are invaluable. They serve as a great guide to html, css, ajax, etc particularly when reviewing videos from other providers

  • @sfoxj
    @sfoxj 2 года назад +1

    Brad make the best tutorials.

  • @matthewrossilini5808
    @matthewrossilini5808 5 лет назад +1

    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!

  • @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!

  • @andresalvarez7303
    @andresalvarez7303 2 года назад +1

    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.

  • @nihongo_
    @nihongo_ 15 дней назад

    best ajax tutorial i've ever seen!

  • @mugilankathavarayan8168
    @mugilankathavarayan8168 Год назад

    This video changed my life, I learned from this video 5 years age, perfect one for beginners.

  • @alexanderfrost1476
    @alexanderfrost1476 3 года назад

    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.

  • @freiyarobloxbedwars208
    @freiyarobloxbedwars208 Год назад +1

    Tysm for this tutorial definitely help me alot to create interactive stuff without reloading the actual page :D!

  • @saadwasil
    @saadwasil 5 лет назад +6

    The most beneficial hour I've spent in the past few days. Thanks, Brad.

  • @claudiobras22
    @claudiobras22 4 года назад +1

    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.

  • @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.

  • @oghenefokethompson7407
    @oghenefokethompson7407 4 года назад +1

    Best video Channel for learning programming thanks for helping my life

  • @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

  • @lequangnghi194
    @lequangnghi194 Год назад

    After reading the doc from MDN and came here for your tutorial, everything is so clear now
    Thanks Brad! 🙏

  • @danielioanitescu2134
    @danielioanitescu2134 4 года назад +1

    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 😁

  • @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.

  • @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!

  • @simple_lide
    @simple_lide 4 года назад +5

    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! :)

  • @eemeelyo529
    @eemeelyo529 4 года назад

    This is QUALITY. I learn better in your video than in other online course. Thank you very much for doing this tutorial.

  • @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!

  • @steffenlaurens8280
    @steffenlaurens8280 6 лет назад

    Marvelous step by step tutorial bro, your name ought to be on the AJAX Tutors Hall Of Fame.

  • @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 :)

  • @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!

  • @DanielBurchfield
    @DanielBurchfield 3 года назад +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.

  • @shatterking215
    @shatterking215 6 лет назад +3

    This really helped me learn the ins and outs of AJAX! It was also a nice refresher for php & MySQL. Thanks Brad!

  • @ferhatbeztout1447
    @ferhatbeztout1447 2 года назад

    the quickiest 1h of my life , don't apologize

  • @quachaihiep3251
    @quachaihiep3251 3 года назад

    After few times coding and messing thing up , i finally got used to this request. Thank a ton, man

  • @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!

  • @danielrgh
    @danielrgh 3 года назад

    Incredible Course After 4 years, good job

  • @durgaprasadnagarkatte6470
    @durgaprasadnagarkatte6470 5 лет назад +1

    This tutorial is too good to learn the basics of making get and post requests with JavaScript. Thanks a lot.

  • @bradcres1120
    @bradcres1120 5 лет назад +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!

  • @csiwele617
    @csiwele617 5 лет назад +1

    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.

  • @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 RUclipsrs, 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

  • @rabiumuhammedeffect423
    @rabiumuhammedeffect423 Год назад

    finally coming back after soo many years of absence

  • @renzycode
    @renzycode 2 года назад

    For all ajax tutorials i've been watch, this is so precise and the best. Thank you Man

  • @dustinhammack7024
    @dustinhammack7024 7 лет назад +2

    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!

  • @briman113
    @briman113 7 месяцев назад

    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.

  • @mynameis3005
    @mynameis3005 7 лет назад +13

    thank you for taking the time off to create such good content. you have inspired me to help share my knowledge in the future.

  • @surinfarmwest6645
    @surinfarmwest6645 7 лет назад

    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

  • @cameracoverage3837
    @cameracoverage3837 2 года назад

    You give me my whole semester in one video. 👏👏👍👍❤️❤️
    Waiting for more....

  • @drewconroy5938
    @drewconroy5938 7 лет назад +1

    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...

  • @SimPwear84
    @SimPwear84 7 лет назад +1

    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!!

  • @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.

  • @gauravarya2419
    @gauravarya2419 6 лет назад

    Thank you very much for focussing on sound fundamentals using plain javascript rather than any framework.

  • @caroldanvers265
    @caroldanvers265 6 лет назад

    I had fun doing this Vanilla JS Ajax tutorial. Excellent Brad!!!

  • @AS-zw4lk
    @AS-zw4lk 7 лет назад

    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"

  • @MarkErolManansala
    @MarkErolManansala 11 месяцев назад

    Hello Mr.Brad Traversy, i finished the video and just wanna say THANK YOU!!!

  • @NedumEze
    @NedumEze 3 года назад

    Ah! You have no idea how helpful this tutorial is.
    Thank you so very much.

  • @yitzchaksviridyuk932
    @yitzchaksviridyuk932 4 года назад +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.

  • @ladywebber1726
    @ladywebber1726 3 года назад +5

    You're such a great instructor. Thank you for teaching me a whole lot from your videos. :) very inspiring as well.

  • @FahadKhan-rp3rz
    @FahadKhan-rp3rz 4 года назад

    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.

  • @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 4 года назад

    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.

  • @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

  • @ИванКачаунов
    @ИванКачаунов 2 года назад +1

    Extremely useful!! That's what i've been searching for. Thank you for the time spent on this lesson!

  • @katlegomatamela
    @katlegomatamela 4 года назад

    One of the best courses i have ever seen

  • @danielk1560
    @danielk1560 4 года назад +1

    Thank you,
    This was my most well spent 1-2 hours in the last half a year!

  • @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.

  • @speakenglishwithjoe2023
    @speakenglishwithjoe2023 3 года назад +1

    You have really made my day with this crash course. OMG very easy to understand. Thanks so much for this video.

  • @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 RUclips and purchased many of your courses on Udemy)

  • @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

  • @FreeJ4ck
    @FreeJ4ck 3 года назад

    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.

  • @belinhobeli9569
    @belinhobeli9569 5 лет назад

    Dude, you are simply great. Never has anyone made me understand this better.

  • @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.

  • @Jakhongir84
    @Jakhongir84 7 лет назад +2

    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.

  • @lukasluftlaufer1093
    @lukasluftlaufer1093 3 года назад

    Brad, you are such a boss! Finally everything makes sense!

  • @sergeysokolov9679
    @sergeysokolov9679 5 лет назад +1

    You're a great professional indeed. Hello from Russia.

  • @donaldabel6228
    @donaldabel6228 4 года назад +1

    This was very helpfull for the understanding of AJAX. Thanks. I haven't started PHP yet but I understood the principle

  • @brandonikjoo
    @brandonikjoo 7 лет назад +2

    Thank you so much about the video. It's the best AJAX tutorial video I've ever have!

  • @marcinkostecki31
    @marcinkostecki31 2 года назад

    Hi Brad, one of the best tutorials of Vanilla JS and AJAX I've ever seen!!! Can you make a video with a test form using AJAX and PDO as well?

  • @nikitakadu425
    @nikitakadu425 3 года назад

    Best Tutorial on this earth 🌍 🙏Thank you so much Traversy Media 🙏

  • @iWaxxy
    @iWaxxy 4 года назад

    Thank you for the awesome videos, Brad. I haven't found a video that explains Ajax this well yet.

  • @JilaniAhmed
    @JilaniAhmed 4 года назад

    I'm speechless! Just would like to say tremendous!

  • @The-Average-Gamer
    @The-Average-Gamer 7 лет назад +2

    Absolutely loved it! Would love to see more back end stuff

  • @IamEffiom
    @IamEffiom 3 года назад

    Mehn, didn't know you exist until now I'm feeling really confident
    Thanks a bunch 👍

  • @peterpark9143
    @peterpark9143 4 года назад

    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

  • @Gabriel-V
    @Gabriel-V 3 года назад

    Thank you for this explanations. RUclipsrs 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!

  • @ashishrao3069
    @ashishrao3069 6 лет назад +1

    Kudos Brad :) Amazing crash course. Time well spent

  • @mrphilbert1
    @mrphilbert1 7 лет назад

    This is the best video on ajax on youtube. You are awesome! Thanks