Tuesday, 27 August 2013

google.load is not defined

google.load is not defined

gradebook.jsp
1) function viewDetails(id){
alert(id);
var studentId=id;
var
url="/oltapp/gradebook/studentGradeDetails/"+studentId+"/";
jq.get(url,function(data){
$("#studentgradedetails").html(data);
// taking graph.jsp and sending to the div of
gradebook.jsp
});
}
<div id=studentgradedetails>
</div>
//google api is not getting loaded when using with ajax don't know why any
solution to this firebug says google is not found i.e graph.jsp
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
//google.load is not working
google.setOnLoadCallback(drawChart);
function drawChart() {
}

No comments:

Post a Comment