Questions tagged [ajax-polling]

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

98 questions
0
votes
1 answer

RXJS Queue to accumulate data values every second and dispatch after every x seconds

I am trying to create a smart Queue that collects data every second or every time i call .next() and after every x secs, say x=5, it dispatches all the current items in the queue, while still receiving new items. The whole idea is to poll the http…
Chukwuma Nwaugha
  • 575
  • 8
  • 17
0
votes
1 answer

How to returned poll data after each nodejs api call to reactjs component

I need to poll the data until the response.Status === 'UpdatesComplete'. I have written this node js API function which basically polls the data - const getResults = async (location) => { try { const response = await poll(location); if…
Neha Gupta
  • 987
  • 5
  • 16
  • 35
0
votes
1 answer

Multiple response from server within a Ajax call in ASP.Net MVC 5

What will be the possible ways to send multiple responses to the client side within a Ajax call. Scenario 1.Import 200 records from excel through Ajax. 2.Read file record one by one. 3.On each iteration I need to send some data to client side and…
0
votes
0 answers

How to Stop Recursive Ajax Polling on Bootstrap Modal Close?

I am calling an ajax polling function when a particular bootstrap modal gets open, it works well, but when I close the BS Modal forcefully the polling function should stop, but it keeps on firing in the background. I don't know what I am doing…
Deepak Singh
  • 129
  • 2
  • 12
0
votes
3 answers

AJAX Reload Interval (Polling) Assistance

I have several files I'm pulling minor text from (a single word most), and then stylizing that with another script. Currently they load and display as they should. However, the text files update at random times, so I'd like them to be reloaded, and…
Snarky_one
  • 13
  • 8
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
  • 15,447
  • 5
  • 79
  • 98
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
  • 26
  • 2
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
  • 6,722
  • 18
  • 57
  • 90
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
  • 269
  • 1
  • 4
  • 12
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
  • 1,145
  • 12
  • 15
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
  • 892
  • 1
  • 14
  • 30
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
  • 12
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
  • 12,320
  • 16
  • 77
  • 156