Page 1 of 1

Long Polling

Posted: 2017-04-01 03:28
by Alisson
Is it possible to add Long Polling to the table view? I'm going to use a TV to display data submitted by sales person and I need the data to display on the tv without having to refresh the page.

Thanks.

Re: Long Polling

Posted: 2017-12-12 17:33
by R Tammam
yes you can , ty the following

1- first you will need to get the ids of all records in the page , you can get them using jquery
2- them make a script that sends an ajax request to the back end to get their data
3- them the back end relpies with their data in Json format
4- use the returned json (the new data of the displayed records) to update your table view
5- put your ajax in set interval to run every some seconds you can decide them

if you follow these steps, it will help you

Re: Long Polling

Posted: 2018-02-08 17:45
by Alisson
Thanks, R Tammam, I'll try.