Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh view if given file has changed #65

Open
ctdany86 opened this issue Sep 21, 2018 · 5 comments
Open

Refresh view if given file has changed #65

ctdany86 opened this issue Sep 21, 2018 · 5 comments

Comments

@ctdany86
Copy link

Hi,
that's more of a question rather than an issue.

Looking at your code example, is it possible to listen to changes for 'data/Health Clinics in Chicago.csv' and refresh the view?
The CSV I am using changes every 5min and I would like to keep the list view updated by adding a listener or hopefully setting some attribute/parameter/configuration.
Thanks

@sedado22
Copy link

Hi,
that's more of a question rather than an issue.

Looking at your code example, is it possible to listen to changes for 'data/Health Clinics in Chicago.csv' and refresh the view?
The CSV I am using changes every 5min and I would like to keep the list view updated by adding a listener or hopefully setting some attribute/parameter/configuration.
Thanks

Hi
Did you find a solution on this?, have the same issue

@bravemaster3
Copy link

Anyone to help with this?
This would be a very great feature, as I am using the code to render a list of publications. It would be nice to simply add new entries to the CSV file and see it on the page.
Thanks!

@bravemaster3
Copy link

Anyone to help with this? This would be a very great feature, as I am using the code to render a list of publications. It would be nice to simply add new entries to the CSV file and see it on the page. Thanks!

Oh, I just searched this and found some hints! It seems like the problem is caused by caches in your browser. When you close the browser and reopen, or if you open the page in a new browser, then the new entry in the CSV file shows.

@erichmatt
Copy link

Anyone to help with this? This would be a very great feature, as I am using the code to render a list of publications. It would be nice to simply add new entries to the CSV file and see it on the page. Thanks!

It seems like this is an issue related to Chrome. It refreshes fine for me when I use firefox and manually refresh the page. With google chrome the table doesn't update even after hitting refresh.

@mohwald
Copy link

mohwald commented Aug 10, 2022

Oh, I just searched this and found some hints! It seems like the problem is caused by caches in your browser. When you close the browser and reopen, or if you open the page in a new browser, then the new entry in the CSV file shows.

I circumvented the caching with adding random string to the csv link.
Change:

            csv_path: "data/Health Clinics in Chicago.csv",

to

            csv_path: "data/Health Clinics in Chicago.csv?rndstr=<%= getRandomStr() %",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants