Questions tagged [xmlhttprequest-level2]

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

XMLHttpRequest level 2 adds new functionality over level 1, including:

See also

68 questions
1
vote
2 answers

How to wait for all XHR2 send calls to finish

I have done some code to upload multiple files from browser to server, while showing progressbars as well. XHR2 send calls are asynchronous. The problem is that I want to call some functions after all the XHR2 send calls are finished. Here is a very…
bits
  • 8,110
  • 8
  • 46
  • 55
0
votes
1 answer

Why does IE8 return cached result for consecutive identical XDomainRequest messages?

In my application I needed to make periodic cross-domain HTTP POST requests to receive up-to-date data from a server (periodic polling). The application was not working in IE8 while it was in Chrome. So I decided to debug this with Wireshark: I…
CEGRD
  • 7,787
  • 5
  • 25
  • 35
0
votes
1 answer

Live code editor - cannot delete first character (using XMLHttpRequest and flask)

I have a live code editor, and I cannot delete the first character, if I select the whole text, and press delete or backspace, it do not do anything. What can I do? Html: Live Code editor
user17517503
  • 155
  • 11
0
votes
1 answer

How can data be routed thru an app-engine domain if the request is from a page on a users computer?

I have an application on google app engine that serves an html file with the following script This uses a XHR…
ejang
  • 3,982
  • 8
  • 44
  • 70
0
votes
1 answer

cross domain request in Xhtml

I'm trying to send a https request from a HbbTV-Application (xhtml) to get information from https://www.meethue.com/api/nupnp. XMLHttpRequest was my first option, but due to same origin policy it obviously won't work. As an alternative i found CORS,…
AdrianL
  • 335
  • 2
  • 18
0
votes
1 answer

XMLHttpRequest Level 2 events: equivlents to readyState

XMLHttpRequest Level 2 adds a number of more meaningful events over the onreadystatechange one. Is there a correspondence between some of these events and the readyState values? As far as I can tell: 1 loadstart 2 progress 3 ? 4 loadend;…
Manngo
  • 14,066
  • 10
  • 88
  • 110
0
votes
1 answer

Pass a current page's php variable through to XMLHttpRequest2 (i.e. $user_id)

I am trying to figure out if a current page's php $var can be passed through to the XMLHttpRequest2. The file that is being called is located outside of the views(where the current php page is located) folder in the /assets/js directory. I am using…
Danny
  • 43
  • 7
0
votes
1 answer

Save xhr.responseURL to array

I have an array of URLs that i need to find the redirects for. I have been using XMLHttpRequest / xhr.responseURL to do so. When I print the results to the console, the redirected URLs display as expected. However, when I try to save those…
ZDROM
  • 1
  • 1
0
votes
0 answers

XMLHttpRequest works sometimes

I've been trying to make an API call to giflayer in order to download a .gif file. I seem to be making some simple error. No matter what I try, the request never progresses past readyState 1 function sendGifAPI(){ //called when the user…
0
votes
1 answer

When an XMLHttpRequest is in "pending" state (in Chrome) does that time count towards it's timeout duration?

If I send out 100 XMLHttpRequests requests with a 1 second timeout that take 1 second for the server to respond, will most of those requests timeout?
0
votes
1 answer

Cross Domain XMLHttpRequest using CORS or Web Proxy

My client has a very specific technical issue they have asked us to find a resource for. It is very specific, so I was wondering if anyone could steer us in the right direction (so I can steer them). They are trying to do a XMLHttpRequest to a…
0
votes
0 answers

Find JSON value with CORS in jQuery from another domain (cross site)

I am new in jQuery. But what I found is it is very easy to use with any Javascript functions. What I am trying is to achieve - http://www.w3schools.com/jquery/demo_ajax_json.js this or…
Abrar Jahin
  • 13,970
  • 24
  • 112
  • 161
0
votes
1 answer

XMLHttpRequest is not working for Json

Am very new to JSON. So read some topics on w3schools and tried to execute locally but its not working. Kindly anyone help me to overcome this issue. Note: 1) Kept 1.html and myTutorials.txt files in same directory. 2) I debugged the html code and…
0
votes
1 answer

PhoneGap - Ajax XmlHttpequest work on emulator | desktop browser but not on device

I'm developing an app on PhoneGap (Cordova Apache) which make an Jquery Ajax XmlHttpRequest cross-domain request to my server. Here is the code : /* * Create the XMLHttpRequest instance */ function getXDomainRequest() { var xdr = null; if…
0
votes
1 answer

Can I test regular XMLHttpRequests with Angular's $httpBackend?

I have an AngularJS application, which needs file uploads, and as $http does not support the special features of XMLHttpRequest.upload, I have to perform the file upload using an XMLHttpRequest. My question is: Can I use the $httpBackend to unit…
jakee
  • 18,486
  • 3
  • 37
  • 42