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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Ben Os](https://secure.gravatar.com/avatar/c6bac24248317129b390d60b7c088e40?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ben Os
20,008 PointsA question about AJAX basics course
In the start of the AJAX basics course our beloved Dave McFarland says that the technical name of AJAX is XHR.
https://teamtreehouse.com/library/ajax-basics/ajax-concepts/how-ajax-works
This is my question:
Is it accurate to say that AJAX is called "XML HTTP-request object" (XHR) because we request XML data in an HTTP-rquest object or "packet" ?
Or is the "object" is what we get in return (the XML data itself) ?
1 Answer
![Dave McFarland](https://uploads.teamtreehouse.com/production/profile-photos/408222/micro_1M7A0052.jpg)
Dave McFarland
Treehouse TeacherHi Ben Aharoni
What Alexander La Bianca says is correct. Thanks Alexander. AJAX stands for "asynchronous JavaScript and XML" -- the XMLHTTPRequest
object is a browser object. In other words it's an object like the DOM, or cookies, or any of the other built-in objects in a browser.
Microsoft introduced the XMLHTTPRequest
object way back in IE 6 (I think). Back then JSON wasn't really a thing, and XML was a common data interchange format. The name has stuck, but now we mostly use JSON formatted data to send and receive data from APIs and web servers.
![Ben Os](https://secure.gravatar.com/avatar/c6bac24248317129b390d60b7c088e40?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ben Os
20,008 PointsI now understand why the technical name is XHR but the should-be-specific name is AJAJ even though AJAX is the common in an era of mostly JSON formatted data exchange.
Alexander La Bianca
15,959 PointsAlexander La Bianca
15,959 PointsAJAX is not called XMLHTTPRequest oject. AJAX stands for asynchronous javascript and xml. It was designed based on the XMLHTTPRequest object which is a built in object in any modern browser. The XHR object can request data from a server. The server then send back a response which can be in XML format. Nowadays the xml part can sound misleading as a lot of times we can request data in JSON format....I guess asynchronous javascript and json...AJAJ...but that just does not sound as cool as AJAX