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
jlampstack
23,932 Pointsxhr.readyState and xhr.status with $.get()
Does $.get() automatically use readyState and status without us having to write the code ourselves, or can we still write the code withing the $.get() ?
Dave used them for writing the code the longer javascript way, but not in this video using the jQuery method $.get()
1 Answer
edinjusupovic
5,664 PointsjQuery handles the XMLHTTPRequest states automatically - you can access some features similar to the XHR states but these are available with jQuery only - see more at; https://api.jquery.com/jquery.get/