All Questions
Tagged with ajax xmlhttprequest
2,882
questions
0
votes
0
answers
32
views
Google login doesn't redirect
I having trouble with my google login using firebase auth. What i want to do is if the user email is already exist in the database it will redirect the user to its respective page and then if not, the ...
1
vote
0
answers
58
views
jQuery Ajax data server capacity problem with 503 errors
I am working with WordPress, attempting to POST an Ajax request that contains a JSON string of approximately 5000 characters. It returns a 503 error, suggesting a capacity issue.
503 Service ...
0
votes
1
answer
61
views
Why is my XMLHttpRequest progress console log not showing?
The progess of the file upload is not being console logged. Why?
Here is the code I have:
const xhr = new XMLHttpRequest();
xhr.open('POST', apiUrl);
xhr.upload.addEventListener("progress&...
0
votes
0
answers
34
views
Debugging Ajax/XmlHttpRequests using Xdebug on Sublime
What settings should I use for debugging PHP files called by XmlHttpRequests? My client is coded in Elm, so it is a single page application (SPA) invoking a series of PHP files. When I am debugging, ...
0
votes
0
answers
39
views
My redirection is failing after I upload my file
Here's the block of code that I'm struggling with.
This jQuery function uploads a file with ajax, but after the file is uploaded, I fails to complete the redirect, and just returns to the file upload ...
0
votes
1
answer
179
views
Is XMLHttpRequest secure over HTTPS?
I am developing a PHP/JS web application in which I make heavy use of the XMLHttpRequest object (for page updates / AJAX, etc.). Among many other areas, I use this in my user management code (login, ...
1
vote
1
answer
108
views
XHR Request is pending until whole audio file fetch [closed]
I have a PHP music site that audio files played through java script :
audio.src = uri;
audio.load();
audio.play().then(
r => {
//set somethings
}
);
...
0
votes
0
answers
63
views
How to gracefully stop XMLHttpRequest on Bootstrap modal close in JavaScript?
I am currently working on a project where I use Bootstrap modals to display dynamic content fetched via XMLHttpRequest (XHR). The modal is opened successfully, and the XHR request is initiated. ...
0
votes
0
answers
36
views
Reading the content of a file with JavaScript from the server and returning it to the application
I have a JavaScript function that reads a file from the server. I wanted it to return the result to me, but it doesn't work. The codes are as follows. The alert does not work. what is the reason ? And ...
0
votes
1
answer
131
views
XMLHttpRequestUpload loadend event fires immediately regardless of actual upload process in React
When I call this function in my react app ( awaiting it in a try...catch block ) the onloadend and onprogress events are fired immediately although the actual uploading process takes some time ( I ...
0
votes
0
answers
59
views
how to download zip file used by AJAX java
After passing the data to the controller through ajax,
I finished creating a zip file in the C:\Users\user\AppData\Local\Temp folder.
It does open well in above folder I mentioned it.
But when I click ...
-1
votes
1
answer
143
views
$_POST is empty while Request Payload shows data, XMLHttpRequest [duplicate]
Have a good day!
I'm using a JavaScript function to call a self-made php page via the post method, the $_POST variable remains empty though.
I'm pretty new into PHP world and my problem might be a ...
1
vote
0
answers
179
views
Binding Blob type from ajax
I've developed an API for validating Excel files and displaying the code content within it. My goal is to call this API using Ajax on the client-side. However, I've encountered an issue with the blob ...
0
votes
0
answers
219
views
How to disable "TCP Keep-Alive" in a XMLHttpRequest
I am working with an embedded firmware project that has an internal HTTP(S) server. It uses an XMLHttpRequest to perform an update to the device.
The core of the AJAX code is this:
var oReq = new ...
0
votes
0
answers
38
views
Monitor XHR requests on Javascript
I can easily monitor and modify navigator.sendBeacon requests with a code like this.
if(navigator.sendBeacon && navigator.sendBeacon.toString().indexOf('native code') !== -1){ ...