I would like to incorporate Google Visualization API diagrams into my Java EE application. However, no matter what I do, the application does not recognize the API. I used it the way I used to, so I donβt understand what I am doing wrong. Can someone take a look at my code and tell me what I'm doing wrong? Thanks!
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %> <link type="text/css" href="LOCATION/STYLENAME.css" rel="stylesheet"/> <script src="/tis/javascript/common/jquery.inlinemenu.js" type="text/javascript"></script> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> </script> <div id="chart_div"></div>
The errors are as follows:
- ReferenceError: google not defined
- The setOnLoadCallback method is underlined and says: unresolved function or the 'setOnLadCallback' method
java java-ee import jsp google-visualization
John hendrik
source share