Top "Xmlhttprequest" questions

XMLHttpRequest (XHR) is a JavaScript object that exposes an API for making asynchronous HTTP requests from frontend code running a Web browser — that is, for enabling the programming technique known as AJAX.

What is difference between Axios and Fetch?

I am calling the web service by using fetch but the same I can do with the help of axios. …

ajax reactjs xmlhttprequest es6-promise es6-modules
How do I know if jQuery has an Ajax request pending?

I'm having some problems with a jQuery control we made. Suppose you have a dropdownlist that allows you to enter …

jquery ajax xmlhttprequest
"not well-formed" error in Firefox when loading JSON file with XMLHttpRequest

I'm getting a "not well-formed" error in the error console of Firefox 3.0.7 when the JavaScript on my page loads a …

javascript firefox xmlhttprequest mime-types
What's the best way to retry an AJAX request on failure using jQuery?

Pseudo code: $(document).ajaxError(function(e, xhr, options, error) { xhr.retry() }) Even better would be some kind of exponential back-off

javascript jquery ajax xmlhttprequest
Access denied in IE 10 and 11 when ajax target is localhost

I'm trying to do a ajax call between a server (http) that is on internet. And target that to my …

ajax xmlhttprequest cors internet-explorer-10 internet-explorer-11
How to force a program to wait until an HTTP request is finished in JavaScript?

Is there a way in JavaScript to send an HTTP request to an HTTP server and wait until the server …

javascript xmlhttprequest httprequest wait
Add a "hook" to all AJAX requests on a page

I'd like to know if it's possible to "hook" into every single AJAX request (either as it's about to get …

javascript ajax xmlhttprequest
Getting BLOB data from XHR request

var xhr = new XMLHttpRequest(); xhr.open('GET', 'http://static.reddit.com/reddit.com.header.png', true); xhr.responseType = 'arraybuffer'; xhr.…

javascript webkit blob xmlhttprequest
How to assign basic authentication header to XMLHTTPREQUEST?

I've read many answers of preflight and CORS so please do not post links referencing what I should read. Many …

javascript restful-authentication xmlhttprequest
What is the difference between XMLHttpRequest, jQuery.ajax, jQuery.post, jQuery.get

How can I find out which method is best for a situation? Can anybody provide some examples to know the …

jquery ajax xmlhttprequest