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 trialIvan A.
9,627 PointsAnd what if?
Hey there people! And what if i DO NOT WANT to use JQuery for AJAX? it is possible to use vanilla JS for these kind of things. I know, i used it... The main problem with THIS(JQuery) in the JS course, that I COMPLETELY do not want to use JQuery... I want to know what is going on under the hood. And I have been more or less successful with this so far... So, what do I do? i don't want to use it... how do I complete the course?
4 Answers
Steven Parker
231,269 PointsThe course uses jQuery. Learn it that way first.
AJAX is probably the most compelling reason to use jQuery, as it makes a huge reduction in the amount of code needed. But having seen how to do it that way, there are plenty of web resources for doing it without jQuery. Here are a few of the more popular ones:
- A Guide to Vanilla Ajax Without jQuery
- You Don't Need jQuery!
- You might not need jQuery
- Ajax without jQuery for beginners
Happy XMLHttpRequesting!
tobiaskrause
9,160 PointsYou should not excect from a modern teaching site like teamtreehouse to use techniques which are used in the time of Internet Explorer 6. Almost every site these days uses jQuery. So it's pretty much obvious that teamtreehouse will teach the modern way, which is also been used by most companies today. But this might help you: http://stackoverflow.com/questions/8567114/how-to-make-an-ajax-call-without-jquery
And yes in the challanges you must use the jQuery way
Erika Suzuki
20,299 PointsAnd you prefer to write in raw JS because? The difference in speed of raw JS and jQuery is not really noticeable to the end-users.
There are instances where it's preferable to write in raw JS. For example, scripts that should be in the <head>
part of the page. You do not want to wait for jQuery to load for that.