Got it!
First step was to bind the results to a javascript:
Not sure if this is the most efficient method, but it works just fine.
Hi Peter,
Thank you for sharing this!
Not a problem.
Any tips on how to refresh a jqplot graph? Each time the graph updates, it simply writes directly over the last one making a mess.
I have tried the following:
-----------------------------------------------------------------------------------------------------var plot = JSON.parse(localStorage.getItem("plot"));
if(plot)
{
plot.destroy();
}
plot = $.jqplot(.....);
localStorage.setItem('plot', JSON.stringify(plot));
----------------------------------------------------------------------------------------------------Unfortunately I am unable to store and retrieve the 'plot' variable in local storage between plots. Each time I try to read it back from local storage, it is clear again.
Maybe there is a simple way of clearing the html object?
Hi Peter,
Here is how to delete jqplot:
pre$("#myplot").html("");/pre