Code: Select all
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
Code: Select all
TypeError: 'undefined' is not a function (evaluating 'document.write('<' + 'script src="' + src + '"' +
' type="text/javascript"><' + '/script>')') (01:18:51:477 | error, javascript)
at http://maps.google.com/maps/api/js?sensor=false:9
Here is a simple test page
Code: Select all
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:p="http://primefaces.org/ui"
xmlns:h="http://xmlns.jcp.org/jsf/html">
<head>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
</head>
<h:body>aae
<p:gmap center="31.521118, 74.349375" zoom="15" type="terrain" style="width:600px;height:400px" />
</h:body>
</html>