JSON and AJAX Tutorial: With Real Examples
HTML-код
- Опубликовано: 25 окт 2016
- Join my premium 2024 bootcamp here learnwebcode.teachable.com/p/...
In this JavaScript tutorial we learn what JSON and AJAX are and how to use them to load new data into our webpage on-the-fly.
JSON URLs I use in the video:
learnwebcode.github.io/json-e...
learnwebcode.github.io/json-e...
learnwebcode.github.io/json-e...
Link to "beginning" demo code so you can follow along: codepen.io/anon/pen/QKPJmW
Link to "completed" demo code so you can see a final working example: codepen.io/anon/pen/RGOqQY
Link to my "JavaScript in Half an Hour" video I mentioned: • JavaScript in Half an ...
Follow me for updates on new videos or projects:
Instagram: / javaschiff
Twitter: / learnwebcode
Facebook: / brad-schiff-1542576316...
Twitch: / learnwebcode
Wow, you're a natural teacher. Nothing annoying whatsoever - and I'm easily annoyed.
Just efficient, clean, well-designed material. Thanks so much.
You're right +Christ he's an excellent teacher
Right? Fantastic. I have found most I meant 99% cant teach coding - a different brain construct?? thats just me.
Yeah. He is really good
@Chris My thoughts exactly. Its almost like you pulled the words out of my mouth.
M Singh 1
"I have a surprise for you. You just learned JSON"
That was awesome
Lol yes. I just thought...oh cool. I could use that kind of nested objects...and then: that is JSON
ahhahhahha, got me
2020 and this still the best tutorial in Json and Ajax
True
Traversy also has a really good tutorial on ajax and js
2021 and beyond...
2022
False. Nothing personal against the creator but he took 40 minutes to explain what could be explained in 10 minutes.
After watching multiple numbers of JSON and/or AJAX tutorials, this old one is by far the most explained one that I found today. Keep it up!
"Congratulations you just learned JSON"
Whole class: *woah*
Minecraft was first to introduce me to JSON.
Yeah!
@@cubicinfinity2 could you program with minecraft?! But how?!
@@RameenFallschirmjager Minecraft is written in Java and I haven't learned Java, but a lot of the data is stored in JSON. If you want to modify certain things for mods and custom maps you'll find yourself writing JSON. Of course, I love redstone and commands too.
@@cubicinfinity2 I did a little research about minecraft I found out it's a very good game for trying technical things. Thanks for your recommendation.
Even in 2019 - best tutorial in Json and Ajax
true
Agree
Even in 2020 and beyond
This is by far the BEST explanation of whats happening out there in WEB for dummies to not to be dumb anymore.
Lol. This Video is 4 years old and by FAR the best and easiest explanation about what is JSON....plus about arrays and objects. Sooooo cool. Thank you
No exaggeration, this is probably in the top 3 best tutorials I've seen on the web. Excellent, clean and precise explanations and patience. Keep it up!
Thanks so much! I'll try to get some new videos up soon; the crazy busy part of the year is finally coming to a close :)
I concur...it is clear and concise.
I concur...it is clear and concise. excellent!
Agreed, this was my introduction. Very clear cut, I'm off to do some programming. Certain it will work.
www.leakingpockets.com
What are the best tutorials in addition to this one? Please share your experience with me if you don' t mind. Thanks.
This is literally the only coding tutorial channel that I can stand
Great video, i am paying 2k$ for courses and couldn't understand json, and I came here for free and I learned in 40 min. Thank you so much.
There cannot be a better teacher than you. Believe me, I dont praise anyone. You are fantastic.
if TEACHERS at schools were LIKE THIS, putting INGENUITY into every phrase and sentence they utter out, there would be NO such thing as a GIFTED kid/child in class, vs other so-called "dumb" kinds. ALL the students would be deemed gifted !! Keep it up ! The style in which you SEQUENCE your phrases, words and ultimately unfold the entire concept . . . is simply EXCEPTIONAL 😊😁😇👏👏
I have used JSON and AJAX for over the past year. But your presentation was so clear, logical and precise that I never knew I could understand the topic any better. You are a great teacher, who not only knows the topic very well, but you are able to teach it extremely well. Very few can do it the way you did it.
You are wonderful! I usually fall asleep watching courses online, but your manner of presenting kept my attention. I am Russian, but understood every word.
Watching in 2024 and this is still the best AJAX and JSON tutorial.
You are exceptional bro. Thank you
I've watched a lot of ajax videos on youtube. I can honestly say this is the best one.
The best AJAX with Javascript tutorial on RUclips.
I can just conquer the world in web development with the tutorial like this !!! Watched bunch of other videos in the youtube ,but couldn't afford anything more than just scratching the head.
that cat in the beginning was a whole mood hahaha. mine wants nothing to do with me until i open my laptop, then he walks across and stands on the keyboard like a HBIC hehe ^.^
Man, you do an awesome job teaching this stuff. Smooth, no wasted time in wordy pursuits and hit every question I have as you go thru the material. Thank you so much for the time you spend is creating this and your other content!! OUTSTANDING!!
I can't believe how easily you make information soak into my head.
The moment you said "surprise, you just learned JSON" I paused the video and subscribed. The way you mould the explanations to be easily remembered is just amazing.
i've seen millions of tutorials, yet I have never and i mean never seen anybody teach in such a welcoming and simple demeanor ! Props to you sir!
You are best teacher ever. You only one that i really learnt coding from. Others more famous just complicate things. But with you i can just write code without need to watch video again and again. Best thing about you. You put idea in our mind in simple way . Others want us keep watching them coding and once close their videos feel just blank
Your style to explain things is so amazing, that I chose to watch your videos even as educational entertainment - that's how pleasant and crystal clear they are. This is a great talent you have and take things from simple steps to "running" ...
One of the best tutorials I've ever watched. Felt quite intimidated by JSON and AJAX and now it's really easier to understand. Thanks!
You wont believe ive been trying to learn JSON from MORE recent tutorials made here ...and this one done in 2016 was way simpler and better explained than the more recent ones even done this year. You deserve a medal man. I have subscribed to your channel also
"when the button is clicked the web browser should go out on the internet download..." THIS. I have been trying understand the information I found about these but nothing helped me understand the situation properly but you so easily hit the exact points!!!
I've never seen such a deep, understandable explanation of JSON and AJAX. GOD Bless You Dude! And Keep Going!!!
Absolute great tutorial in every sense. I'm Ger(wo)man, and I understand
English, but sometimes it's hard, following speakers with too much
dialect and idioms. So special thanks for your efforts, pronunciating so
clearly.
haha Ger(wo)man , i'd call that an inside joke :)
Ladynatalie33
Ladynatalie33
What the hell is Ger(wo)man? LMAO!!!!!! Gerwo-man hahahaha funny woman
I'm Russian, and I wanted to say same. Usually Americans speak as if they have a mouth full of porridge. But here I understood all. Excellent pronunciation!
nobody ever taught me basics of json this clearly and simply. I thank you sir!
Your clarity of explanations and step-by-step approach of teaching is simply PHENOMENAL !!!!
I appreciate that fact that you type all the code while teaching. Some other RUclipsrs just copy and paste. It makes it much harder to keep up without pausing over and over. Love your videos.
you are very didactic, clear and you have a special talent to teach. I am working with AJAX for sometime, I learned complementing knowledge from several sites, but let me tell you with this video you did, everything I learned before come to make sense just now. Thank you, you are the best!!, please continue!!!
Very helpful. I am 75 and maintain 7 Wordpress sites for various charities or non-profits. Trying to learn more so I can do more and make the sites function better. Thanks for explaining how to do things and some of the issues that could cause it not to work.
I learned more watching this than my entire term class. 😅
Thank you!!!
probably one of the best tutorials on anything that i've come across
Oh my God ... magnificent lecture by a magnificent lecturer. I felt that 40 min passed like one minute. Thanks A lot man.
Curious to know who is dearing to dislike such an amazing video. Best online Software Engineering teacher. Thanks Brad.
I think this is the first time I sat through a 40+ minute coding video on RUclips. I don't know what it was but it was actually FUN learning from you. You are an extremely talented teacher, keep it up and please continue posting videos like these, even though I'm 3 years late.
OMG, I just saw one of the best tutorials in the RUclips...!!!!
This tutorial is so short, concise and helpful!! You explained everything so well. Thank you so much!
i tried myself and it worked.. no unwanted error... no extra tools.. Amazing
I hardily ever comment on RUclips, but I found this video to be one of the most explanatory tutorial on RUclips. Thanks a lot!
Everybody knows what to teach, but very few know how to teach. You are really 'the' best among the best, fortune to have people like you and you are really changing the world for better. I found it so hard to understand these things but not anymore. You made it so simple and clear. Thanks a ton. god bless you :)
What an amazing tutor ! I was struggling to learn JSON and he taught me out of surprise. :)
Just watched it for 10 minutes!!! And came down here to comment.
THIS IS TEACHING AT ITS ZENITH, WHERE ELSE CAN I FIND A TEACHER LIKE THIS??? !!
Mate, I have been searching everywhere for the past few weeks trying to learn JSON and pulling data into a html table. You have helped tremendously with your simple process and now I have around 250 lines of data pulling through into a simple table in the correct styling and rows! Thank you!
Hi, I am searching for ways to do the same. JSON data to the table. could you please give me a clue? will appreciate it
Best tutorial I have ever seen online, neatly explained. Keep up the good work bro!
Thanks so much!
You're absolutely amazing! I almost got emotional when I saw this tutorial for the first time. You explain everything so good and calmly. More than well done!
Yes, same here, got really emotional when I could finally nail it...lol
I don't usually gush, but you are very good. "I have a surprise for you. You just learned JSON" is a wonderful moment, and really encouraging, thanks
Never seen someone teaching in such artistic way...you are awesome...I'm still surprised that I've "learned JSON and AJAX" so easily..thank u sir...
You're an awesome teacher. I love your videos.
Every tutorial is a priceless gift to your audience. Thanks you very much. I have already purchased your courses on Udemy. Waiting for PHP tutorials. Regards.
Thanks so much! I'll keep the tutorials flowing :)
10 minutes in and I just bought your course. The way you teach is amazing!
For a long time i've been asking myself: "What is JSON? What is AJAX? How do I work with APIs?" This video answered it all, in under 40 minutes. Thank you!
absolutely the best start to a tutorial video! meow!
Fucking loving your tuts man, so well done. You make things super easy to understand.
It has past just 8 minutes and I couldn't help myself to pause the video just to comment how perfect is the job you are doing here! FANTASTIC!!!!!
Congrats, amazing video!
You're better at teaching than everyone I had encounter before. I like how you take the time to go through each step but my favorite thing about you is that you provide us with the links that you're using and that they actually work. Because other tutorials provide a link but when I click on the link it doesn't work and it's very annoying. So thanks for all the great teaching and valuable information! I bought your advanced WordPress tutorial by the way, to see how you build a website for a fictional university. I'm about to start it and I'm so thrilled about it!
Great videos man! I'm already studying your trainings in Udemy. Greetings from Brasil!
Thiago Barbosa
Yo dude, amazing job!!!! one of the Best tutorial i have ever seen... grats!
40 minutes passed away in a second. You are an incredible Teacher ; And the extra bonus was very Helpful. Thank you so much. Subscribed.
I have been struggling with JSON for 2days now, your teaching makes it easy! thank you soo much for making me more understand about JSON
Your cat is amazing. Greet your cat's cat from me
you had me at that intro LUL subbed
Man you won me over today! i don't think i've ever been able to cleanly understand any of these tutorials but you knocked it out the park! Thank you and keep up the amazing out!
wow I've been taking Javascript for 3 months in school and I am struggling to understand my teacher, but 5 mins into this video and I already understand what he tries to teach in 2 hours.
At 19:45, my console says "main.js:5 Uncaught TypeError: Cannot read property 'addEventListener' of null
at main.js:5
(anonymous) @ main.js:5"
How do I resolve this error?
It seems to be that the function is being called before the page loads.
If you are experiencing this problem you can fix it by moving your to the bottom of the index.html, that way it will load after everything has loaded with HTML!
it is trying to run before the DOM has completely loaded. I got it to work by wrapping the entire function in a window.onload=function(){};
Hey Bella, I thought about the same thing. But once I wrapped everything inside of the window.onload, then I no longer have access to the variables because everything inside of the function are now local variables! How did you get around this problem?
i just put everything inside of the window.onload thereby making it all variables that are accesible because they are contained within the same function
@@dfusic Thanks!
i had an error:
"The character encoding of the HTML document was not declared"
i fixed it by adding
in the head after the first meta tag
if you start an html page by first typing ! and then pressing tab then vola, all this thing inside the head would be automatically made and even the basic html template, try it, type ! and then press tab:)
Clear, to the point and easy to follow with good explanations. One of the most useful introductions to Ajax I've seen.
I was afraid of these JSON and ajax techniques, but you totally killed it. Also got a brief Idea about how APIs Works. Salute man. Thank you so much.
This is a great tutorial. However, I noticed that most of the HTML is missing in the "completed" demo code at codepen. I can see it onscreen in the begining part of the video but I thought I'd point it out. Thanks for the great upload!
i have the same problem. Who can help me?
How have you avoided the error the console throws if "No 'Access-Control-Allow-Origin' is present on the requested source"?
I have the same problem.
chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi?hl=en
Install this and you will be good to go.
Additionally you can go through this : stackoverflow.com/questions/10636611/how-does-access-control-allow-origin-header-work
I also ran into this problem.
I know others have stated the obvious but wow...you are an incredible teacher! This video is so clear, easy to understand, and well paced. I have been using JSON and AJAX on a few projects lately and while I understand "how" to make it work, I was looking for some tutorials on "why" it works. Most other tutorials I found were way too granular and assumed the viewer already knew a lot. This was perfect for me and I am sure its also perfect for people who are just starting to use JSON and AJAX. Great work!
With no shade of doubt this video is one of the best tutorials for ajax, html and js. Thanks man.
TIP: If you are getting an error in the console saying: "blocked by client", simply turn of your ad blocker.
Andreas : Thank you my friend!
Your comment should be at top, thanks for the advice.
Thank you soo much
genius and easy
incase you dont want to turn off the ad blocker you can simply use (document.write) instead of console.log and it will be printed on your webpage .
3:38 Bucky, is that you ?
Tuna????
He might follow Bucky's video...
if those two get together for a super tutorial in front end web development that would be priceless.
It’s 2021, and this still the best tutorial in Json and ajax. Thank you man. Respect🥰🥰
Bought 4 of your courses in Udemy after seeing one of your tutorials on wordpress a few months ago. Thanks to that, I just finished my first custom wordpress project for a client and they love it! Thank you so much for sharing your knowledge and experience with us. It opened a lot of opportunities 😊 I'm aspiring to learn react and deepen my knowledge of javascript this time wish me luck!
2021 and this is still the best JSON AND AJAX tutorial ever..
Usually I'm too lazy to drop a comment for a video. But boy, your video is an absolute walk in the piece of cake for anyone who wants to get started with JSON & Ajax.. you're indeed awesome 🤟🤟👌
I'm learning better with you than most brazilians teachers same no speak english. Thanks you!
You made the best approach to teaching JSON and Ajax.
I lost the hope of learning Ajax, Every tuts or Docs seems confusing to me Then Your video popped up on my search and Now I just Love you & Subbed u too!
This is call the real engineering. You explained everything step by step in details which I like the most.
you are a real teacher...not like the bunch of wannabes.
this is the *best explained* video of those all tuitorials i have seen so far......but amazed,that it was uploaded before 4 yrs..... _Great clean complete work of all time bro_
This was probably one of the best tutorials I have ever watched
I'm not into web development but this is honestly the best code tutorial I've ever seen.
17 mins in and i have to say this tutorial sofar is superb and leaves no questions unanswered. Also i like the historical references to XML, so there is no room for confusion why some codebits are still referring to XML.
One of the best tutorials on the net from a very talented teacher.
2021 and this still the best tutorial for Json and Ajax on the entire Internet
I have to agree to previous comments: the way you approach the topic and the very clear way of explaining and pronounciation is so helpful! Thanks a lot!
Watched the first 10 minutes and my goosh you're a very good lecturer. If you have any other lecture like this one, please direct me to them. Learning made easy from very good lecturer.
Excellent Tutorial. Very well made, thank you so much! Still 100% relevant almost 4 years later.
Probably the clearest explanation of anything ever. Thank you.
Man, I wish I could hit the like-button about 50 more times. You, sir, are amazing.
I've been trying to understand JSON, XMLHttpRequest and AJAX for over a week. I've watched and read dozens of tutorials, but I only became more confused: these tutorials would only explain a new concept by using 3 other concepts that I wasn't familiar with either... Completely hopeless!
And you've just explained it to me in 40 minutes. Thank you! So much!
after going through around 20 videos I came to this one.. how easily you made me understand this :) Thankyou.
Where have you been in my whole life bud!!!
you are just amazing....