Sorry, My English is bad,
In a sense, I don’t need this to execute every 3 seconds.i want to execute whenever any changes occurs in database table.I don’t know very deep knowledge about js.Every 3 seconds it sends request to server,will the page become heavy?Is there any other method to implement this??how to know database changes by php??here is the code
setInterval(ajaxCall1, 3000);
setInterval(ajaxCall2, 3000);
setInterval(ajaxCall3, 3000);
setInterval(ajaxCall4, 3000);
setInterval(ajaxCall5, 3000);
setInterval(ajaxCall6, 3000);
setInterval(ajaxCall7, 3000);
setInterval(ajaxCall8, 3000);
setInterval(ajaxCall9, 3000);
function ajaxcall1{
$.ajax({
url: 'echo_file.php',
datatype: 'json',
success: function(data) {
seriesOptions=data;
createChart();
},
}
similiarly code for all other function.