Edit: It might be a duplicate but I could not get anything on the forum to work after two solid days of trying as I already remarked in the original post so just trying to get some help...
====
I've spent days trying to solve my problem and tried every suggestion I can find on here and other sites with no working solution.
I have a need to load a Google Chart from another page on the same domain into a div to provide a seamless visual update at set intervals. The graph takes 1 or more seconds to create. The code I am trying loads the chart into the div fine and repeat loads at intervals.
Problem is that visually it looks just the same as hitting F5 and watching the chart be created!
The code I have that I've used and that works in that it loads the graph is:
<script>
$('#chartA').load('./DataAJ.htm');
var auto_refresh = setInterval(
function ()
{$('#chartA').load('./DataAJ.htm').fadeIn("slow");}, 30000);
</script>
I know by now that I need to add some further code to wait until the load completes. I've tried dozens of examples but none has any effect, either it carries on as was or doesn't work at all but I never see the seamless update I need.
Can anyone provide me with the code changes I need please?
NB the chart is normally called with parameters not shown here that then create it on request
TIA