Questions tagged [ajax-polling]

Ajax polling is a technique used for checking for new server-side events.

93 questions
0
votes
1 answer

poll doesn't work with setted var

I want to use one html page with two ManagedBeans. Depending on the parameter in the URL, I want to set the bean name through JSTL variable. For example: or
eveillaur
  • 11
  • 3
0
votes
1 answer

Highcharts real-time line chart with multiple data streams

I want to implement the real-time dynamic graph on line chart by using Highcharts. That is what I expect: Spline updating each second. In my case, the real-time JSON object contains all of chart parameters. Here's my real-time JSON data on JSON…
Penny Liu
  • 7,720
  • 5
  • 40
  • 66
0
votes
1 answer

Ajax polling while other request has been send not working on safari

I have a page on a website where you can download files that you previously paid for. The file is a zip archive that contains many pdf files. When the download link is clicked, a php file is called that does some work (adding stamp on the pdf's)…
HarmJan
  • 16
  • 1
0
votes
2 answers

An ExtJS panel/tree/something else that polls

All I want is to display a list of records from a database table that are always up-to-date. My initial thought was to have a constant ajax call every x seconds checking for updates, but wasnt sure if that was the best way to approach it. I have…
neolaser
  • 5,842
  • 17
  • 55
  • 89
0
votes
1 answer

How to break out of AJAX polling done using setTimeout

I want to implement AJAX polling mentioned in this answer. Now I want to break out of polling when server return particular data value. How to do that?
user41451
  • 209
  • 4
  • 10
0
votes
0 answers

Two responses coming when making a single ajax request to wit.ai

When I am calling wit.ai I get two responses. response 1: Request Method:OPTIONS, Status Code:204 No Content, Response headers: Access-Control-Allow-Credentials:true Access-Control-Allow-Headers:Authorization, X-Requested-With, Content-Type,…
Biboswan
  • 875
  • 10
  • 14
0
votes
1 answer

Check MySQL for updates and show notifications alternatives

I am working on a Java application (JSP/Servlets) where users can send messages to each other. For this purpose I am using a single table in MySQL with fields such as msg_id, sender_id, receiver_id, msg_content etc. When user_A sends a message to…
pirox22
  • 448
  • 8
  • 23
0
votes
1 answer

Primefaces Dialog framework open dialog from

Salam, I'm trying to show a notification in a dialog dynamically from a poll component but it doesn't seem to work !! the action works well when i use it with a…
zez
  • 53
  • 1
  • 7
0
votes
2 answers

How i can increase loading time of GIF image?

Before AJAX method I add a GIF image but duration of loading time is very short. How can I set time of loading duration and after that AJAX response will show? $('.signup p').html('
nur alam
  • 127
  • 2
  • 11
0
votes
1 answer

How to fix Jquery Polling continuing for infinity?

I want to get a page refreshed after every 3 minutes. It contains a table where each row represents a detail of a post. Users can reply to the post, and that notification will be shown as a red bubble with 1(no. of unread message). I am trying to…
Saswat
  • 10,704
  • 16
  • 59
  • 126
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
  • 1,933
  • 1
  • 14
  • 19
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
  • 10,087
  • 21
  • 77
  • 164
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…
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,144
  • 10
  • 29
  • 45