Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

AJAX Basics Course will retire on june 19th, 2019 so pretty soon?

What will it be replaced with and is json better? Should ignore this section of the full stack javascript track?

3 Answers

You have a number of options when it comes to getting data. AJAX is the JQuery library approach.

I wouldn't worry too much about AJAX course being retired as there are many other ways that you should know about first.

Here is some useful links to other options:

vanilla HTTPRequest - If you know the fundamentals of this then you can pretty much use any option as this is what is happening in the background of most libraries.

fetch API here at treehouse - This is a must have over AJAX, this is in my opinion the easiest way to get data, using this with Promises to manipulate data however you need to

async await at treehouse - Doesn't fetch data but its needed for asynchronously fetching data.

async and promises at treehouse - Same as above.

As you can see there are other modules here at TreeHouse to learn that show you how to get data with JavaScript.

Learning any of the above will put you in a good position to easily pick up AJAX if you wish to do so.

Hope this helps

Good Luck

Fascinating, really appreciate your response and thank you for the great courses. +100

AJAX can be used to get data from somewhere like a server. That data can be represented in JSON. AJAX and JSON are different things and can't replace one another.

You will need to learn about AJAX. If treehouse is retiring a course, i'm assuming they'll bring out a more up to date version or there may already be an up to date video somewhere already.