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.

Uploading a file with XMLHttprequest - Missing boundary in multipart/form-data

I'm uploading a file with XMLHttprequest. Here is the JS function, that uploads a file: var upload = function(file) { // Create …

php javascript xmlhttprequest xmlhttprequest-level2
How to make a simple JSONP asynchronous request in Angular 2?

I'm trying to convert the following Angular 1 code to Angular 2: $http.jsonp('https://accounts.google.com/logout'); It needs to …

asynchronous typescript xmlhttprequest angular jsonp
NS_ERROR_FAILURE : Failure in Firefox

I'm using javascript's XMLHttpRequest object to send a request to another page (not on the same server or domainname ) I …

javascript ajax firefox xmlhttprequest xss
how to allow ACCESS-CONTROL-ALLOW-ORIGIN aka cross-domain on wampserver

XMLHttpRequest cannot load https://webservice.com?param=hahah. Origin http://{domain} is not allowed by Access-Control-Allow-Origin. I get this when …

cors xmlhttprequest wamp wampserver
When should XMLHttpRequest's onerror handler fire

I have a little problem understanding XMLHttpRequest's handlers. The specification says this about the onerror handler: error [Dispatched ... ] When the …

javascript ajax xmlhttprequest
Downloading an image using XMLHttpRequest in a userscript

First of all there is a question with the same title here on SO but its not what I'm looking …

javascript xmlhttprequest download userscripts
jQuery AJAX - Unexpected token + parsererror

I wrote a script using jQuery and AJAX today, and I get some errors... The script: function changeAdmin(id) { $(document).…

jquery ajax xmlhttprequest parse-error
Internet Explorer 11 does not add the Origin header on a CORS request?

My issue depends on a couple of assumptions I hold true. Assumption nr 1: The Origin Header The Origin header is …

internet-explorer xmlhttprequest cross-domain cors
Fallback for FormData in IE 8/9

FormData does not exist in IE 8/9 but I need that functionality in those browsers. Is there a nice fallback for …

javascript ajax xmlhttprequest fileapi
How can I get an access token Spotify API?

I've been looking at the Spotify api for a few days now and example source code and I still can't …

javascript html ajax xmlhttprequest spotify