Top "Xmlhttprequest-level2" questions

XMLHttpRequest Level 2 defines various new methods over XMLHttRequest level 1, such as the FormData object and new response types.

Deadly CORS when http://localhost is the origin

I am stuck with this CORS problem, even though I set the server (nginx/node.js) with the appropriate headers. …

javascript html cors xmlhttprequest xmlhttprequest-level2
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
xhr.upload.onprogress doesn't work

Everything in the following code will work, except it will never fire the xhr.upload.onprogress event. $(function(){ var xhr; $("#…

javascript xmlhttprequest-level2
XMLHttpRequest.addEventListener vs XMLHttpRequest.upload.addEventListener

What is the difference between the this code block: var xhr = new XMLHttpRequest(); xhr.upload.addEventListener("progress", uploadProgress, false); xhr.…

ajax html xmlhttprequest-level2
iOS 6 (iPhone/iPad) Image Upload "Request Body Stream Exhausted" with NTLM/Windows Authentication

I am working on trying to get iOS 6 to use XMLHttpRequest POSTs to upload images. This works on desktop and …

ios xmlhttprequest ios-simulator ios6 xmlhttprequest-level2
Is it possible to set accept-charset for new FormData (XHR2) object or workaround

Here is example code (http://jsfiddle.net/epsSZ/1/): HTML: <form enctype="multipart/form-data" action="/echo/html" method="post" name="…

javascript ajax character-encoding form-data xmlhttprequest-level2
handling multiple XMLHttpRequest calls f

Note: I have two xmlHttp.open requests with two diffent url strings and two onreadystatechange functions defined. I have an …

ajax xmlhttprequest-level2