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.

file_get_contents("php://input") or $HTTP_RAW_POST_DATA, which one is better to get the body of JSON request?

file_get_contents("php://input") or $HTTP_RAW_POST_DATA - which one is better to get the body of …

php json xmlhttprequest
AngularJS Error: Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https

I have three files of a very simple angular js application index.html <!DOCTYPE html> <html ng-app="…

javascript html angularjs xmlhttprequest
Proper way to catch exception from JSON.parse

I’m using JSON.parse on a response that sometimes contains a 404 response. In the cases where it returns 404, is …

javascript xmlhttprequest
jQuery posting valid json in request body

So according to the jQuery Ajax docs, it serializes data in the form of a query string when sending requests, …

jquery ajax json xmlhttprequest
Sending a JSON to server and retrieving a JSON in return, without JQuery

I need to send a JSON (which I can stringify) to the server and to retrieve the resulting JSON on …

javascript json post get xmlhttprequest
XMLHttpRequest status 0 (responseText is empty)

Cannot get data with XMLHttpRequest (status 0 and responseText is empty): xmlhttp=new XMLHttpRequest(); xmlhttp.open("GET","http://www.w3schools.…

javascript ajax xmlhttprequest
A CORS POST request works from plain JavaScript, but why not with jQuery?

I'm trying to make a Cross Origin post request, and I got it working in plain JavaScript like this: var …

javascript jquery xmlhttprequest cors
enabling cross-origin resource sharing on IIS7

I recently ran into with posting Javascript requests to another domain. By default XHR posting to other domains is not …

javascript iis-7 xmlhttprequest cors
loading json data from local file into React JS

I have a React component and I want to load in my JSON data from a file. The console log …

javascript ajax json xmlhttprequest reactjs
XMLHttpRequest (Ajax) Error

I'm using XMLHttpRequest in JavaScript. However, it gives me an error, and I don't know what my problem is. I …

javascript ajax xml xmlhttprequest