I have a page that displays a graph: `<td>&l...
# cfml-beginners
e
I have a page that displays a graph:
<td><cfinclude template="../EP/CurrentWeekEcommOrders.cfm"></td>
Is there a way to make it refresh periodically?
s
depending on what you want to refresh, there are a few ways to solve this. If it is acceptable to just refresh the whole page periodically you can use a <meta refresh=“” tag
otherwise i think you can achive this via jquery ajax tag and return the whole html fragment with the graph on it
e
I would like to refresh <cfinclude ...> only, if possible
p
And just utilize your cfincluded page for the URL on that jquery
and then add
<div class="torefreshdiv"></div>
inside your <td></td> in place of your cfinclude
Or here is a slicker example with the automating refresh; This one is just example code that reloads every second (1000 milisecond) in the code. http://jsfiddle.net/Ehq72/
e
Thank you, I will check your references out
e
you could just add meta refresh in basic html, its supported by every browser.. meta http-equiv="refresh" content="30" where 30 is the number of seconds before the page is asked to reloaded.
p
Epipko is not seeking to refresh the entire page; just that element.
🎯 1