Error: 'google is undefined.
How do I force the script to wait until 'google' has been defined? I
am working in IE 8.
Thanks,
Bills
- - - - - -- - - - - -- - - - - -- - - - - -- - - - - -- - - - - -- -
- - - -- - - - - -- - - - - -- - - - - -- - - - -
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi"></
script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["map"]});
google.setOnLoadCallback(drawMap);
function drawMap() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Address');
data.addRows(1);
data.setCell(0, 0, '415 N. Pillsbury St. Milroy, IN 46156');
var map = new
google.visualization.Map(document.getElementById('map_div'));
map.draw(data, {showTip: true});
}
</script>
</head>
<body>
<div id="map_div" style="width: 400px; height: 300px"></div>
</body>
</html>
--
You received this message because you are subscribed to the Google Groups
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en.