javascript - Code inside script in JSP is not getting refreshed at interval -
i using high chart plotting dynamic graph. calling function last data after 1000 ms. same code shown on graph. alert show same data.
the code
load: function() { var series = this.series[0]; setinterval(function() { <% livedynamicgraph l = new livedynamicgraph(); %> var x = <%out.println(l.gettime()); %> ; alert(x) y = <%out.println(l.getresponsetime()); %>; series.addpoint([x, y], true, true); }, 1000);
Comments
Post a Comment