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.

How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers?

In Firefox 3, the answer is 6 per domain: as soon as a 7th XmlHttpRequest (on any tab) to the same domain …

ajax browser xmlhttprequest
HTML5 Pre-resize images before uploading

Here's a noodle scratcher. Bearing in mind we have HTML5 local storage and xhr v2 and what not. I was …

image html upload xmlhttprequest local-storage
Allow Google Chrome to use XMLHttpRequest to load a URL from a local file

When trying to do a HTTP request using XMLHttpRequest from a local file, it basically fails due to Access-Control-Allow-Origin violation. …

javascript jquery google-chrome xmlhttprequest local-files
How do I get the HTTP status code with jQuery?

I want to check if a page returns the status code 401. Is this possible? Here is my try, but it …

jquery ajax xmlhttprequest http-status-codes http-status-code-401
How to make cross domain request

As you know, the security of the web browser disallows making of cross domain requests. I read a book which …

javascript websocket xmlhttprequest cross-domain
XMLHttpRequest module not defined/found

This is my code: var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest; var xhr = new XMLHttpRequest(); xhr.open("GET", "//URL") xhr.setRequestHeader("Content-Type: …

javascript node.js xmlhttprequest
Uploading multiple files using formData()

var fd = new FormData(); fd.append("fileToUpload", document.getElementById('fileToUpload').files[0]); var xhr = new XMLHttpRequest(); xhr.open("POST", "uph.php"); …

javascript arrays upload xmlhttprequest
How can I send the "&" (ampersand) character via AJAX?

I want to send a few variables and a string with the POST method from JavaScript. I get the string …

javascript ajax string post xmlhttprequest
Upload File With Ajax XmlHttpRequest

Hi i am trying to send file with xmlhttprequest with this code. <script> var url= "http://localhost:80/...."; $(document).…

javascript ajax jquery file-upload xmlhttprequest
How to add header data in XMLHttpRequest when using formdata?

I'm trying to implement a file upload API, given here : Mediafire file Upload I am successfully able to upload the …

javascript http-headers xmlhttprequest form-data mediafire