JSON and AJAX Tutorial: With Real Examples
Вставка
- Опубліковано 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
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!
I appreciate that fact that you type all the code while teaching. Some other UA-camrs just copy and paste. It makes it much harder to keep up without pausing over and over. Love your videos.
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.
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!!!
This is literally the only coding tutorial channel that I can stand
"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
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!
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!!
The best AJAX with Javascript tutorial on UA-cam.
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
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" ...
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 watched a lot of ajax videos on youtube. I can honestly say this is the best one.
Your clarity of explanations and step-by-step approach of teaching is simply PHENOMENAL !!!!
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!
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.
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.
I think this is the first time I sat through a 40+ minute coding video on UA-cam. 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.
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!
I've never seen such a deep, understandable explanation of JSON and AJAX. GOD Bless You Dude! And Keep Going!!!
probably one of the best tutorials on anything that i've come across
nobody ever taught me basics of json this clearly and simply. I thank you sir!
Even in 2019 - best tutorial in Json and Ajax
true
Agree
Even in 2020 and beyond
"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.
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
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!
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
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!
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 :)
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
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...
Oh my God ... magnificent lecture by a magnificent lecturer. I felt that 40 min passed like one minute. Thanks A lot man.
What an amazing tutor ! I was struggling to learn JSON and he taught me out of surprise. :)
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.
This is by far the BEST explanation of whats happening out there in WEB for dummies to not to be dumb anymore.
OMG, I just saw one of the best tutorials in the UA-cam...!!!!
I learned more watching this than my entire term class. 😅
Thank you!!!
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!
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 an awesome teacher. I love your videos.
Best tutorial I have ever seen online, neatly explained. Keep up the good work bro!
Thanks so much!
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 tutorial is so short, concise and helpful!! You explained everything so well. Thank you so much!
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 😊😁😇👏👏
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
This was probably one of the best tutorials I have ever watched
absolutely the best start to a tutorial video! meow!
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 ^.^
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.
Curious to know who is dearing to dislike such an amazing video. Best online Software Engineering teacher. Thanks Brad.
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 :)
Great videos man! I'm already studying your trainings in Udemy. Greetings from Brasil!
Thiago Barbosa
With no shade of doubt this video is one of the best tutorials for ajax, html and js. Thanks man.
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
Fucking loving your tuts man, so well done. You make things super easy to understand.
Your cat is amazing. Greet your cat's cat from me
I think the best JSON and AJAX tutorial on YT!Well done man and thank you.You have a sub straight away!
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
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:)
Yo dude, amazing job!!!! one of the Best tutorial i have ever seen... grats!
Excellent Tutorial. Very well made, thank you so much! Still 100% relevant almost 4 years later.
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!
you had me at that intro LUL subbed
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!
2021 and this is still the best JSON AND AJAX tutorial ever..
2021 and this still the best tutorial for Json and Ajax on the entire Internet
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.
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?
You made the best approach to teaching JSON and Ajax.
Im quite sure that this is the best tutorial about JSON and AJAX on the internet. Thanx a lot!!!
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.
40 minutes passed away in a second. You are an incredible Teacher ; And the extra bonus was very Helpful. Thank you so much. Subscribed.
Thank you - best tutorial on AJAX I could find. Your patient and clear explanations are amazing!
This video is super super helpful. I was struggling to understand the text material that my computing school provided and this video is definitely a much easier way to understand how AJAX works. Thanks lot for your video !
10 minutes in and I just bought your course. The way you teach is amazing!
best tutorial i have ever seen on youtube.
very descriptive and easy language.
one of the best introductions to a tutorial video in the history of mankind
2021 and this still the best tutorial for Json and Ajax, thank you very much
One of the best tutorials on the net from a very talented teacher.
What an amazing tutorial, i understood everything on my first attempt to work with JSON and AJAX. Thank you so much.
Probably the clearest explanation of anything ever. Thank you.
I love your explanations and very well done tutorial. Actually engaging even for someone with severe attention deficit. Thank you!
It’s 2021, and this still the best tutorial in Json and ajax. Thank you man. Respect🥰🥰
Such a great tutorial ..... real straightforward and packed with value.
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!
This is call the real engineering. You explained everything step by step in details which I like the most.
There cannot be a better teacher than you. Believe me, I dont praise anyone. You are fantastic.
i tried myself and it worked.. no unwanted error... no extra tools.. Amazing
Still here in 2020 appreciating all the info provided in this video. Thank you very much!
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_
Super video, I have never come across anything so complex yet explained in such an easy manner.
Amazing teaching. I've just seen till minute 15 and I had to stop to congratulate and thank you for this video. But especially to thank you. I can finally get the key and the general idea of Json and Ajax.
thnx man, the best crash course in youtube till now, really
Where have you been in my whole life bud!!!
you are just amazing....
An outstanding lesson from an outstanding teacher. Great pace and you didn't gloss over anything important. Thanks
Nice! The CodePen stuff was fun. This is the missing piece is my full stack trip and will make React & Angular easier to learn by using real world files. Thank you!
words can not describe how perfect is this tutorial