Closed dkitchel closed 14 years ago
If you're using Prototype for javascript I'd recommend using an Ajax Periodical updater see: http://api.prototypejs.org/ajax/ajax/periodicalupdater.html to poll your app. You could then replace a wrapper containing the graph (as a partial) to be replaced and call the javascript to render the graphs again in your response.
Cheers, Jeremy
Hi,
Sorry to bother you again.
Can you think of a way to auto refresh the charts / maps based on new data coming in? Specifically, I'm looking to poll our db to see if there is new lat / lng data that I'd want to send to the map. It seems I'd have to clear the map dataTable, refresh it with new data and re-draw the map.
I'd appreciate any ideas you have.
Thanks for the great software.
Davis