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 to upload a file using jQuery.ajax and FormData

When I use XMLHttpRequest, a file is correctly uploaded using FormData. However, when I switch to jQuery.ajax, my code …

javascript jquery ajax file-upload xmlhttprequest
What is the boundary parameter in an HTTP multi-part (POST) Request?

I am trying to develop a sidebar gadget that automates the process of checking a web page for the evolution …

http xmlhttprequest mime-types multipartform-data
How do I promisify native XHR?

I want to use (native) promises in my frontend app to perform XHR request but without all the tomfoolery of …

javascript xmlhttprequest promise
Return $.get data in a function using jQuery

I'm trying to call a function that contains jQuery code. I want this function to return the results of the …

jquery xmlhttprequest
What does it mean http request body?

Upon reading stuffs about POST and get methods here there is a statement like " when used post method it uses …

html http xmlhttprequest httprequest
How to get "Data" field from xhr.responseText?

I have XMLHttpRequest() function given below var searchFriendRequests = function (userid) { var xhr = new XMLHttpRequest(); xhr.open('GET', 'http://localhost:6344/api/…

javascript jquery xmlhttprequest
"Origin null is not allowed by Access-Control-Allow-Origin" in Chrome. Why?

I am working on some Javascript to run locally on my PC. I am using a jQuery CSV plugin (http://…

javascript google-chrome xmlhttprequest cross-domain
WebKit "Refused to set unsafe header 'content-length'"

I am trying to implement simple xhr abstraction, and am getting this warning when trying to set the headers for …

javascript ajax xmlhttprequest
CORS request not working in Safari

I am making a CORS xhr request. This works fine in chrome, however when I run in safari I get …

javascript safari xmlhttprequest cors
FormData in IE8/9

i have implemented this script for uploading files with ajax, it works perfect in other browsers except for explorer, i …

javascript xmlhttprequest activexobject form-data