google.load

google.load causes empty dom/screen

久未见 提交于 2019-12-22 02:51:19
问题 I'm trying to add a google visualization asynchronous, but I am running into problems. I've narrowed it down to the google.load causing the problem. When google.load part of the js runs, I get an empty screen/dom. Any one know what I am doing wrong. I've also tried using the google.setOnLoadCallback, I get the same result. Any help would be great Relevant code : $(document).ready(function () { google.load('visualization', '1', { 'packages': ['geomap'] }, { 'callback': drawVisualization });

google.load causes empty dom/screen

最后都变了- 提交于 2019-12-04 22:45:21
I'm trying to add a google visualization asynchronous, but I am running into problems. I've narrowed it down to the google.load causing the problem. When google.load part of the js runs, I get an empty screen/dom. Any one know what I am doing wrong. I've also tried using the google.setOnLoadCallback, I get the same result. Any help would be great Relevant code : $(document).ready(function () { google.load('visualization', '1', { 'packages': ['geomap'] }, { 'callback': drawVisualization }); function drawVisualization() { $.ajax({ type: "POST", data: "{'monitorId':'" + monitor + "','monitorName'

Getting user location with google.loader.ClientLocation working for me but not others

醉酒当歌 提交于 2019-12-03 09:47:37
问题 Am trying to use google.loader.ClientLocation along with the maps api to get the location of the visitor and center a map on it. The following is working fine for me (on Safari, Firefox and Chrome), but a friend I got to test it (in Safari and Firefox) just sees a white box with the Google logo. <script type="text/javascript" src="http://www.google.com/jsapi?key=MykeyHere"></script> <script type="text/javascript"> google.load("maps", "2"); </script> <script type="text/javascript"> function