I have the following function in Ajax:
$.ajax({
type: "POST",
url: "tra.php",
data: {},
dataType: 'json',
suceess: function(Last)
{
line.originalData[0].push(Last);
line.originalData[0].shift();
RGraph.SVG.redraw();
}
});
setTimeout(function () { update() }, 50);
}
update();
However, the update () function is not starting, how do I make it work?