Originally posted this here: Trying to load Google charts through a (jQuery)ajax call but have modified my code a bit but I still can\'t get it to work properly.
I am t
First i would check if the the drawChart function behave correctly, next try updating your code to this
$.post(
"query.php",
{answer: "yes", poll_id: 5},
function(response){
console.log(response); // check what the response from the server is
drawChart(response);
},
'json' // the expected response data type
);