jQuery ajax() option - xhr - Stack Overflow

--------------------

-current community-

· chat blog
Stack Overflow
· Meta Stack Overflow
· Careers 2.0

-more stack exchange communities-

Stack Exchange
sign up log in tour help

· Tour Start here for a quick overview of the site
· Help Center Detailed answers to any questions you might have
· Meta Discuss the workings and policies of this site

careers 2.0



Stack Overflow

· Questions
· Tags
· Tour
· Users

· Ask Question

Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and
enthusiast programmers. It's 100% free, no registration required.

** jQuery ajax() option - xhr **

up vote 4 down vote favorite
*2*
In jQuery ajax function there is xhr option. Does someone know more
details, usability or sample usage of this option?

jquery

share|improve this question
asked Oct 29 '09 at 15:11
Vaclav Kohout
166111

add comment

* 4 Answers *

active oldest votes

up vote 1 down vote accepted
In fact, someone does know.

The xhr option allows you to define your own callback for creating the
XMLHttpRequest object that will be used behind the scenes in the ajax()
call. In pretty much every single case, you shouldn't need to specify this
option.

share|improve this answer
answered Oct 29 '09 at 15:14
Matt Ball
153k23219332

 

Yes, it doesnt look much useful. –  Vaclav Kohout Oct 29 '09 at 15:47
2  

When in doubt, go to the API first. –  Matt Ball Oct 29 '09 at 15:58
 

Really...? This is a pretty sad attempt at... [EDIT: I'll leave my comment
slightly more informative by adding this EDIT section]. –  SgtPooki May
7 '13 at 19:53
 

@SgtPooki a pretty sad attempt at what? –  Matt Ball May


Source: stackoverflow.com/questions/1644418/jquery-ajax-option-xhr

© 2005-2018 HaveYourSay.org