I am using ie8 and so does everybody else. I need to make this script work for ie8. I cannot make json.parser work on IE. I tryied some of the recommendations that I saw here like json2.js modify html file etc. It does not seem to be working. Is there an alternative to this method? I really need this working and cannot figure out.
get_cpu.php outputs the data as this:
[1230000000,23]
This is my function. It works on chrome, firefox but not IE.
$(document).ready(function() {
function request_cpu_Data() {
$.ajax({
url: 'get_cpu.php',
success: function(data) {
alert(data.length);
var myObj = JSON.parse(data);
var point = cpu_chart.series[0].points[0];
var newVal=myObj[1];
myDate=myObj[0];
point.update(newVal);
setTimeout(request_cpu_Data, 1000000);
},
cache: false
});
}