Ajax polling is a technique used for checking for new server-side events.
Questions tagged [ajax-polling]
98 questions
0
votes
1 answer
How best to implement the polling consumer pattern in JavaScript
Background
Back in May I reported an issue on WebKit regarding a memory retention issue. It looks as though the problem could be due to the Web Inspector itself, but I'm not convinced yet.
Problem
A problem surfaced whereby my JavaScript application…

Christopher Hunt
- 2,071
- 1
- 16
- 20
0
votes
0 answers
Polling not actually happening, React JS (ES6)
Consider for a moment the following code:
import React from 'react';
import ReactDOM from 'react-dom/dist/react-dom';
import chunk from 'lodash/array/chunk';
class Tweets extends React.Component {
constructor(props) {
super(props);
…

TheWebs
- 12,470
- 30
- 107
- 211
0
votes
0 answers
p:poll returns undefined on "oncomplete" function
I have a strange problem (maybe a bug) with the poll compontents and trying to return values at callback. Because the Poll element returns undefined on "oncomplete" function called.
I don't understand why args are always undefined. I tried all. Logs…

Drakas
- 3
- 4
0
votes
1 answer
Primefaces poll triggers message from f:viewParam
First post here, so bare a bit with me. Searched a lot, but either because I was to blind or because I just didn't use the correct search strings, I haven't found any answer relevant to my problem.
Basically, I have a web application written in…

Bogdan Cioropină
- 1
- 1
0
votes
1 answer
jQuery: pass different data to periodicalupdater each time?
On my setup, the ids of all entries will be fetched (e.g. assigned to variable ids=2,5,7,9,11) and passed to periodicalupdater to send to a php script. The problem is that the list of ids change over time, when new entries are added via ajax. How…

Lyon
- 7,354
- 10
- 33
- 46
0
votes
1 answer
jQuery recursive ajax poll using setTimeout
This question is related to this: jQuery recursive ajax poll using setTimeout to control the poll interval, but slightly different and I cannot figure out why.
function _poll(n) {
$.ajax({
url: "/check_status",
type: "POST",
data:…

user180574
- 5,681
- 13
- 53
- 94
0
votes
0 answers
Update list size in real time with PF Poll
In my JEE application, I have an emails list extraction process. I need to display a counter which be incremented after adding a mail to the list. The idea is to display the size of this list and update it every 1 seconde using primeface poll. I…

Reem
- 169
- 1
- 4
- 15
0
votes
2 answers
CometD Issues with Publishing Data to a Channel
I am new to cometd, I have planned to send a message to the server and get the message in my browser using cometd
If i send a message it is successfully send to the server but couldn't get it in the browser
private void testService() {
String…

Jananan
- 1
- 3
0
votes
0 answers
Ajax difference between requests
Imagine you have big application (like facebook or G+) with tons of ajax short polling.
you have sidebar with news feed (which does not update quite often), you have notifications, you have online users and etc.
Now usually what you do it make a…

CBeTJlu4ok
- 1,072
- 4
- 18
- 51
0
votes
0 answers
Ordering polling requests
I am trying to follow rails casts episode #228 on polling for changes. I am essentially following the screencast word for word, except that I am using it for notifications instead of comments. The only difference is that every time he uses the…

Philip7899
- 4,599
- 4
- 55
- 114
0
votes
0 answers
p:poll on database always returns the same value although DB gets updated
I have a database where I keep uploading GPS information that I want to show in a JSF page. In order to do that periodically, I am using the poll element from PrimeFaces, however, the queries keeps returning the same values, even though they are…

E. Fernandes
- 3,889
- 4
- 30
- 48
0
votes
1 answer
New message alert using ajax in Asp.net MVC3
I do have a UI where I have to show the alert when ever new message arrives.I am trying to do this using ajax.I mean I do have a link called as My Message.I am showing new message badge when ever new message arrives.
My code goes as follows:
…

SantyEssac
- 789
- 2
- 19
- 47
0
votes
1 answer
PHP Poll with Results on Same Page
There was a great article posted by CSS-Tricks.com describing how to create a poll using PHP and a MySQL database. I've followed this and created a nice poll for myself. I noticed in the comments a mentioning of using AJAX to show the results on the…

Raphael Rafatpanah
- 19,082
- 25
- 92
- 158
0
votes
0 answers
Create a simple poll for an api page change
I have a java servlet which responds with a number in text/plain format. What I want to do is have another page run a script which polls this URL and triggers an alert window when the number there has changed from the first time it was loaded. I…

agilesynapse
- 41
- 1
- 5
0
votes
1 answer
Primefaces, periodical update when idle
I want to auto update datatable (on client) when user is idle. I'm using Primefaces 3.5 with glassfish and my idea was following:
I've boolean autoUpdate variable in bean. And user can turn on/off the auto update.
I created two components: p:poll…

tvazac
- 536
- 2
- 7
- 21