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
10k
views
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 "...
7
votes
0
answers
3k
views
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 ...
5
votes
2
answers
7k
views
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 ...
4
votes
2
answers
1k
views
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-...
4
votes
1
answer
10k
views
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 ...
3
votes
3
answers
1k
views
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
...
3
votes
1
answer
3k
views
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. ...
3
votes
2
answers
4k
views
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 ...
3
votes
1
answer
2k
views
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 ...
3
votes
0
answers
4k
views
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 ...
2
votes
1
answer
2k
views
Why must the XHR status be set before echoes in PHP?
Perhaps this question belongs on Stack Overflow or another site instead, in which case please tell me and don't just downvote; I will gladly move it.
Anyway, I'm just learning the very basics of ...
2
votes
2
answers
988
views
TIME_WAIT Info (reduce)
I have a ajax application that makes a request every 3 seconds, the requested page sets the header to (header("Connection: Keep-Alive, close");) then performs a database query and returns the latest ...
2
votes
2
answers
3k
views
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 ...
2
votes
1
answer
6k
views
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,...
2
votes
1
answer
9k
views
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 ...
2
votes
1
answer
3k
views
AJAX Push Engine: Can't contact APE Server
I'm trying to set up the AJAX Push Engine (APE) on my Mac, running Mac OS X 10.6.4 and Apache 2.2.14
When I run the APE server, this is the output:
Hristo$ sudo ./aped
Password:
_ ___ ___
/_\...
2
votes
0
answers
326
views
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 ...
2
votes
0
answers
50
views
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 ...
1
vote
1
answer
2k
views
Apache log - file does not exist
I have quite a few of these in Apache logs piling up every day:
[Mon Jun 09 20:42:58 2014] [error] [client 180.153.214.181] File does not exist: /home/user/public_html/ajax.googleapis.com, referer: ...
1
vote
1
answer
238
views
Do I run an install or something for Ajax on windows 2008 R2 hosting web application?
I have an application that runs fine on windows 2003 environment with Ajax panels, checking to see if when I move this application to a new windows 2008 server R2, would I need to install the Ajax ...
1
vote
2
answers
803
views
CNAME/AJAX subdomain point to domain
Could anyone let me know how to use a subdomain for ajax calls to a main domain?
I know it requires the use of CNAMES and whatnot, but I'm a bit clueless still. I want to make AJAX calls to ajax....
1
vote
1
answer
835
views
Is it possible to detect an ajax request with Apache 2.4 for a mod_rewrite rule?
Is it possible?
Trying to move my script security to the server-level.
With PHP, just check if $_SERVER['HTTP_X_REQUESTED_WITH'] is set to XMLHttpRequest (jQuery added).
I guess maybe a better ...
1
vote
1
answer
1k
views
Nginx POST request is changed to GET when using Ajax
I have an Nginx server used for a store. That store has an API which is in a different folder for which i'm using an alias. Here is my example.com from sites-enabled in Nginx:
server {
listen 443 ...
1
vote
1
answer
8k
views
CentOS: AJAX/jQuery not working
In a nutshell, I have an unmanaged VPS. At one time, it had Ubuntu 10.10 server on it, then I reinstalled it with CentOS 6 and updated it to CentOS 6.2. Now, the problem is, the AJAX/jQuery shoutbox ...
1
vote
1
answer
2k
views
Apache 2 on Ubuntu returning 500 with no known cause?
NOTE: This question has been resolved! Please see below for the solution in my case if you are having a similar issue!
Background:
This is a PHP/MySQL based, database driven application that makes ...
1
vote
1
answer
99
views
Capabilities and pricing of Amazon's cloud computing platform? [closed]
I'm finding it very hard to estimate how much my web application might cost running in Amazon's cloud? My app is similar to stackoverflow.com - asp.net, ajaz, sql database. Can anyone estimate how ...
1
vote
0
answers
292
views
Good system for Ajax to send keepalives every N seconds to PHP without overloading server
I have a website in which Javascript sends HTTP POST Ajax requests every 5 seconds to a PHP script on a CentOS server. If I check netstat, I see lots of connections in TIME_WAIT state (mostly between ...
1
vote
0
answers
1k
views
ajax/jquery causes "error 500" on Apache2 (php-fpm enabled) server
Just set a VPS with this guide:
"https://www.howtoforge.com/tutorial/perfect-server-ubuntu-18.04-with-apache-php-myqsl-pureftpd-bind-postfix-doveot-and-ispconfig/".
Everything looked perfect! but I ...
1
vote
0
answers
151
views
High percentage of ajax errors
My company's website uses jQuery ajax to submit forms. A high percentage (5% - 10%) are failing, causing the ajax's error handler to run in the client's browser. The error handler looks like this:
$....
1
vote
0
answers
356
views
htaccess require host domain not working correctly
I have a folder full of folders with json files. I want to restrict AJAX requests to these files to certain domains.
I made an htaccess file to restrict this but it isn't work. My htaccess is as ...
1
vote
0
answers
411
views
TMG Extending the timeout on AJAX requests
We have a web app that is designed as a single page application (SPA) that uses AJAX. Our clients have a problem when this is hosted behind TMG. Because only one page request is made at the start of ...
1
vote
0
answers
2k
views
IE 10 HTTP 401 Error on AJAX POST
I've been chasing down an issue and decided to make the most basic reproduction of the issue possible in hopes that a simplified question will help me resolve this.
I am receiving a 401 error when ...
1
vote
0
answers
1k
views
How to prevent htaccess from prompting authentication for indirect access to a file via ajax?
First off my terminology is probably wrong but when I hear "direct access" I think someone means that anyone has read privileges to a file from the url. Is my understanding of what "direct access" ...
0
votes
1
answer
2k
views
Would a self signed ssl cert significantly slow down ajax requests?
I have a site with a live scoring page that updates via ajax while games are going on. It was working fine when the site was running on http.
We installed an ssl an its either self signed or ...
0
votes
2
answers
24k
views
PHP unable to identify sqlsrv_connect() function while trying to connect SQL Server
I'm trying to connect to my local MSSQL Server from a simple PHP file using the sqlsrv_connect() function, but every time I'm calling the file in the browser through localhost, it's throwing a 500 (...
0
votes
1
answer
477
views
POST requests from mobile network (hotspot or not) always fail
I have noticed a weird behavior regarding POST requests on all my servers from devices that are connected to the internet either via 4G or via hotspot from a 4G network.
I am an admin of 2 services ...
0
votes
3
answers
212
views
I want to host an AJAX based website on an Apache web server and host a MySql database on the same machine for about 50 concurrent users [closed]
The website gets its data from the MySql database.
Will a Mac Mini with 2GB Ram and an Intel Core 2 Duo do the trick?
0
votes
2
answers
741
views
Block access to every file in the site but index.htm in Nginx
I have a site with just one file: index.htm which have some ajax linked to php files. I'd like to make those php files only accessible via ajax (post and get) coming from this index file and block ...
0
votes
2
answers
1k
views
Nginx reverse proxy to identical ajax applications, choose which one with url
I need to have a reverse proxy that is capable of forwarding requests to upstream applications that have identical architecture, but are not Identical. I have no control over the code running on the ...
0
votes
1
answer
2k
views
NGinx rewrite rules and post parameters
I have a website, using CodeIgniter, and running under NGinx.
I used these rewrite rules to cleanup the URL, and remove the index.php from the URL.
Unfortunately, I have a problem with AJAX queries ...
0
votes
2
answers
174
views
Polling performance on shared host [closed]
I am planning on writing a small browser game.
The webserver is a shared server, with no root / install possible.
I want to use AJAX for client/server communication. There will be 12 players.
So ...
0
votes
1
answer
587
views
Memcached and Django - When Ajax action is performed, ALL css and js is missing
I've got Django running and caching into Memcached. I have some ajax actions on a page and when those actions are performed, and the browser refreshd, the CSS and JS files are no where to be found. ...
0
votes
1
answer
1k
views
Getting ajaxterm to work on Debian Lenny
I've been knocking my head out for a while on this one and have read many tutorials, but I just can't get this to work. Ajaxterm, is a webbased SSH client; once installed apt-get install ajaxterm and ...
0
votes
1
answer
1k
views
.htaccess to match paramaterized URLS
I am trying to set a cache control header when a browser requsets the following url:
www.example.com/php/getData.php?exampleField=exampleValue
As even though getData.php is a dynamic page, when the ...
0
votes
2
answers
2k
views
Setting up ajaxterm with apache
I have ajaxterm running in my localmachine. I want to access it from remote machines (virtual machine)
I mainly followed this http://www.tbaumi.de/blog/?p=585 tutor
https://localhost/ajaxterm
...
0
votes
1
answer
204
views
Ajaxterm with multiple users
With Ajaxterm (http://antony.lesuisse.org/software/ajaxterm/), is it safe to allow multiple users to access the same "instance" of it? The program that Ajaxterm would run would do its own ...
0
votes
0
answers
13
views
Ajax not loading show server response issue
i'm using lightspeed server when i hit a page it taking to much time to load ajax request while first it was working fine when i change DNS it slow down and lihgtspeed cache not working for loggedin ...
0
votes
1
answer
2k
views
Getting CORS error while accessing audio files on same server in chrome
Access to video at '/path/to/mp3/file' from origin 'https://example.com' has been blocked by CORS policy: Request had a target IP address space of unknown yet the resource is in address space public.
0
votes
1
answer
2k
views
Unable to connect SQL Server from PHP using Windows Authentication
I'm trying to connect to MS-SQL Server from PHP-8.0 (hosting on IIS-10 localhost) using SQL Server Driver for PHP, i.e., SQLSRV-5.9. While connecting from a PHP page, if I use SQL Server ...
0
votes
2
answers
1k
views
Using deny from all inside htaccess in a subdomain restrict access to itself
I am facing a strange situation where i couldn't find a proper answer to.
I am using some kind of an API where i can send responses to certain requests from the same root domain.
My api is in a ...