Why "google Is Not Defined " When I Load Google Js Api
i follow the api step by step,but can't load successful.. this is my code: &
Solution 1:
you should put any call to the google stuff inside the onGoogleDataLoad()
function to make sure it is not launched before the APIs have finished loading.
function onGoogleDataLoad() {
var service = new google.gdata.maps.MapsService('docs-example');
listMaps()
}
Solution 2:
If you check the JS URL with your browser, you get the following result:
var error = new Error("Invalid autoload.");
error.toString = function() { return this.message; }
throw error;
Meaning, there's something wrong with your URL.
Post a Comment for "Why "google Is Not Defined " When I Load Google Js Api"