Questions tagged [mxhr]

Multipart XMLHttpRequests

5 questions
14
votes
2 answers

Cross Origin Resource Sharing (CORS) across Subdomains

Suppose I have an app at www.example.com (a) If my resource is at www.someotherdomain.com (b) and I make an AJAX call from (a) to (b) then CORS rules would apply. However if my resource is located at api.example.com (c) then one would expect to…
yevg
  • 1,846
  • 9
  • 34
  • 70
3
votes
2 answers

How to send an http multipart POST request with a Blob in it?

I am using multipart XMLHttpRequest to upload files on a Google Drive account, using the syntax described in google's documentation: https://developers.google.com/drive/web/manage-uploads#multipart Here is an simplified example of the request's…
tuxlu
  • 193
  • 1
  • 2
  • 9
3
votes
1 answer

Ajax readystate 3 (Chrome / IE)

I'm playing around with some comet and mxhr technologys. As it turns out, Chrome (5) does actually fire a readystate 3, but the responseText is always empty there. Until today I though only InternetExplorers (<8) would show that behavior. Am I…
jAndy
  • 231,737
  • 57
  • 305
  • 359
2
votes
2 answers

Unable to extract image file uploaded on React frontend on Flask backend

I'm trying to send an image file(that resides locally) from my react single page frontend app to my flask backend. Some of the things I have tried out but not limited to are capturing my content type and indicating the encType on the front end.…
dlvr
  • 93
  • 1
  • 11
0
votes
0 answers

How to display the search result and load the content of another webpage through xhr request

I have a page where I want to load the search results when user inputs keywords in the input field. I've a search button when clicked on search button an search-body div appears In the search-body there's an Input field and user inputs the keywords…