My php file ends with:
echo json_encode($array1);
echo ";";
echo json_encode($array2);
and prints out e.g.
[1358499135965,68];[1358499140000,2]
My javascript code looks so:
function requestData() {
$.ajax({
url: 'livedata.php',
success: function(point) {
var yenidata = point.split(";");
alert(yenidata[0]);
alert(yenidata[1]);
});
}
Why do I not get an alert?