Live data - how to in PHPRAD October 02, 2020, 06:30:47 AM Hi there!Maybe a dumb question but... how could a "live data view" could be done in PHPRAD in some more elegant way than just reloading the entire page?Is there something that is actually "supported" by default in the PHPRAD concept?In the end... maybe a kind of "page in page" and then refreshing/reloading just the subpage?Or some kind of AJAX "API/subpage" call to get the changes and updating the nodes on page? For example in a List page you have something (a list...) where values of some records changes few times a second and want to "live view" that on the page?Suggestions? Quote Selected
Re: Live data - how to in PHPRAD Reply #1 – October 02, 2020, 02:07:02 PM @mculibrk there is currently no configuration for doing that, you will have to write a jquery/js code to do that for you Quote Selected
Re: Live data - how to in PHPRAD Reply #2 – October 02, 2020, 07:15:57 PM Yeah... I thought so...Anyway... I thought to make another page of the adequate type (list probably) and use it to generate pure JSON output. From the "normal" page then use some JS code to pull that JSON data and use it to update various "live" fields on the page.What do you thing of this approach? Any better suggestion? (websockets on the page and keep the connection live? What is the status of websockets in PHPRAD?)The only issue at the moment could be the pagination and filtering data which should be "passed" from the main/normal page...Or make a lot of custom field formats (on dynamic fields) to add unique id= on each field to be able to update them directly by JS, then I could ignore the pagination altogether... (but this way there will be a lot of overhead/data going back and forth - ids to server, results back)Any idea on how to effectively "link/shadow" a "sub page" of a normal list/view page to reflect the filtering/sorting... settings of the "parent" page? (basically to be sure the subpage "shows" the identical data (order etc))?Thanks a lot! Quote Selected Last Edit: October 02, 2020, 07:20:20 PM by mculibrk