hi, Thanks for your response.
I was able to make some progress, using the approach mentioned in the below link Basically, I am dynamically loading the api , using the combination of below js functions; using the initLoader() js function from the main jsp, which is called on click of a link on UI. The main issue i am facing is , first time click of the link is opening a SSL alert , and giving JS error. Although The subsequent second click is successfully able to load the google maps window (hence, this is failing the first time load of API dynamically). The URL i am trying now (to load api) is of format http://www.google.com/jsapi?key=XYZ&&callback=loadMaps Earlier, I use below url format https://maps-api-ssl.google.com/maps?file=api&v=2.99&sensor=false&client=gme-XXX&key=XYZ Not sure , which correct URL format will give the desired results ========================================================== * function* mapsLoaded() { * var* map = *new* google.maps.Map2(document.getElementById("google_map")); map.setCenter(*new* google.maps.LatLng(37.4419, -122.1419), 13); } *function* loadMaps() { google.load("maps", "2.99", {"callback" : mapsLoaded}); } *function* initLoader(insrc) { * var* script = document.createElement("script"); script.src = insrc; //the url script.type = "text/javascript"; document.getElementsByTagName("head")[0].appendChild(script); } ====================================== Thanks, On Fri, Jul 9, 2010 at 7:58 PM, Rossko <[email protected]> wrote: > > I also tried google ajax loading, but I believe that if for use of > > google ajax api loading and not for google javascript loading. > > It's documented here, under 'basics' > > http://code.google.com/apis/maps/documentation/javascript/v2/basics.html#AJAX_Loader > If it doesn't work for you, share a link to your example problem page > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps API" 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-maps-api?hl=en.
