There is an issue that I cannot solve, I\'ve been looking a lot in the internet but found nothing.
I have this JavaScript that is used to do an Ajax request by PHP.
Have you tried doing this as a synchronous AJAX request? Notice the async setting below.
$.ajax({
type: "POST",
async: false,
url: "getTIER1Tickets.php",
data: "",
success: function(html){
// Succesful, load visualization API and send data
google.load('visualization', '1', {'packages': ['annotatedtimeline']});
google.setOnLoadCallback(drawData(html));
}
});