I am trying to add a Google chart via AJAX but in Firebug I am getting:
ReferenceError: google is not defined
The AJAX that I am sending looks like this:
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawVisualization);
etc etc...
</script>
I'm assuming that the first script is not loading. How would I fix this? I've tried loading after ajaxComplete but I can't get it to work.