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 (retiring) jQuery and AJAX jQuery’s AJAX Shorthand Methods

What information does the "response" parameter return?

Hey, just double checking what information the "response" parameter returns.

Thanks in advance

2 Answers

Erik Nuber
Erik Nuber
20,629 Points

It depends what you are calling with your Ajax request. In most cases you will be getting back either HTML, XML or JSON.

Here is a good article about the response...

http://www.quirksmode.org/blog/archives/2005/12/the_ajax_respon.html

ywang04
ywang04
6,762 Points

This one answers your question.