Questions tagged [xmlhttprequest-states]

22 questions
0
votes
1 answer

responseText contains javascript code and the code doesn't load

The string: comes from a XMLHttpRequest() request, and generated by php, and is then written to a new window with javascipt, but the script is not…
user583311
  • 265
  • 3
  • 6
  • 13
0
votes
3 answers

XMLHTTPRequest event listeners are not working?

For some reason my script for file upload is not working correctly and I have absolutely no idea why :? The script manages to send the file/s but I can not track the progress or state changes. I've tried to comment out unecessary bits for debugging…
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

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
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

How to get headers from response?

I need to get headers when readyState is 4. I have had this code: