Questions tagged [ajax]

AJAX (Asynchronous JavaScript and XML) is a set of development techniques for creating interactive web applications, using asynchronous communication between the client and server.

64 questions
8
votes
3 answers

Open source jabber based website "live chat" / "live help" system?

I don't know if this belongs on SF, SU or SO... let's try SF first. I'm looking for a "live help" system for website which uses Jabber/XMPP as a backend... so that website visitors could click a "Chat Now" button, and using AJAX, chat with operators…
Josh
  • 9,001
  • 27
  • 78
  • 124
6
votes
0 answers

Nginx returning 408 error with XHR2 file uploads during mid-upload

A customer of mine is trying to upload a file to our remote nginx webserver via a form POST using XHR2 form data (and a cross-domain request with CORS). During mid-upload, the webserver returns a 408 and the ajax error handler halts processing as a…
danronmoon
  • 163
  • 1
  • 6
4
votes
1 answer

nginx: An existing connection was forcibly closed by the remote host

I am running nginx on Windows Server 2008 R2 and it seems to be crashing, it also uses php-cgi with it and the php-cgi is part of the problem. After about 30 seconds of being on the page php-cgi closes and stops working, yet this only makes it…
Josh Deriosk
  • 41
  • 1
  • 2
4
votes
2 answers

Proven and Scalable Comet Server

What is the most proven, scalable comet server solution out there that can handle up to 100.000 real-life connections per node using HTTP streaming (not long-poll)? It must be a free, preferably open-source project. We've already tried Meteor…
Demetrius Nunes
  • 181
  • 1
  • 3
3
votes
3 answers

Redirecting from https to http?

Strange problem here. I use FullCalendar to initiate an ajax request to an endpoint on my server. Endpoint is: https://my_website/events/?start=2019-03-31&end=2019-05-12&_=1555698739056 Note that it is explicitly https. However, when I initiate a…
3
votes
2 answers

Disable HTTP Authentication for OPTIONS requests in Tomcat

I have an API protected by HTTP Basic Authentication. When I want to make AJAX requests against the API, the browser send an OPTIONS request which doesn't carry the Authorization header so it gets rejected and thus my AJAX call is not allowed by the…
4e4c52
  • 153
  • 2
  • 6
3
votes
1 answer

NGINX / PHP-FPM: Ajax slow first request, good next ones

The CMS is Elxis, which comes from a variant of Joomla (PHP). The server is running nGinx with PHP-FPM All requests get logged and executed, eventually, B U T!!! When firing a specific request via the URL bar, the request gets executed…
3
votes
0 answers

NGINX proxy ajax request

I don't see what the problem is with this NGINX server configuration. I'm running a tomcat server on port 8081, jboss on 8080, and have NGINX listening on port 80. I'm sending an ajax request to port 80 and would like to have it proxy_pass to the…
neridaj
  • 131
  • 1
  • 3
3
votes
1 answer

CNAME to get around same-origin policy?

I'm embedding an application via iframe into a someones site and need to be able to call a few of their javascript functions. Clearly running a top.cart.add() gets blocked by the same-origin policy. We've exhausted most of our options when it…
Brad Herman
  • 133
  • 1
  • 4
3
votes
2 answers

POST Fail via AJAX Request?

I can't for the life of me figure out why this is happening. This is kind of a repost (submitted to stackoverflow, but maybe a server issue?). I am running a javascript log out function called logOut() that has make a jQuery ajax call to a php…
Jascha
  • 143
  • 1
  • 6
2
votes
1 answer

Ajax "POST" not working on HTTPS/SSL Nginx

I moved my magento store from non SSL to SSL (webserver: Nginx) The problem : The site's JS scripts ( Multiple Ajax function with "POST" ) has stopped working! Requests are fine but not able to get the response. Response headers (501 B) I am very…
perlware
  • 33
  • 1
  • 5
2
votes
2 answers

Is there a way to cache only GET Ajax request?

Usually I have in nginx config rules which does not allow cache all XMLHttpRequest: map $http_x_requested_with $nocache_01 { default 0; XMLHttpRequest 1; } Is there a way to cache only GET Ajax request?
2
votes
1 answer

POST requests from jQuery to PHP stuck if POST data exceeds several hundred characters

I have a plain ajax request being initiated by jQuery to a PHP script: $.ajax({ url:"script.php", data: data, type: "POST" // error & success handlers here }); If the data (could be JSON, could be a binary file), exceed a few hundred…
2
votes
0 answers

Apache2 HTMLURLMap messes with AJAX requests

I need to proxy a web application from oldname.my.net to newname.my.net For that I use apache with the proxy module like this # PROXY TO INTERNAL SERVER ProxyPreserveHost On RequestHeader set Host "oldname.my.net" RequestHeader set…
mohrphium
  • 615
  • 2
  • 9
  • 16
2
votes
0 answers

Strange faulty 16000d response timing in gdevtools for specific XHR

We have some XHR on our website, that is reported in Google developer tools' network timeline as Receiving for 16035.5 days. There actually is a response, and for sure it does not take as long as reported ;) I reviewed the HTTP headers and to me…
nico gawenda
  • 121
  • 4
1
2 3 4 5