Search code examples
ajaxjquerycross-domainxdomainrequest

Using XDomain object for IE8+ in Jquery


my skills with jquery core are not that great, though Ive been working with JQuery for almost a year now.So here is the question.

What changes would I need to do , if I want to use XDomainRequest whenever a cross-domain request is made on IE8+?

Basically, I want to make changes to the xhr function for jquery.ajaxSettings object, so that whenever a cross-domain request is made , and the browser is detected as IE8+, the xhr returns a XDR rather than an XHR.

What all pitfalls would I need to keep in mind before I do that?

Any other pointers that anyone would want to give are appreciated.

I know this as a question is very general, but from what I feel, so is the topic of substituting xhr with xdr in the required scenario.

Thanks


Solution

  • You should try the AjaxHook extension.