Looks like the example needs to be fixed.

You should just be able to remove the onload and onreadstatechange
functions:

script.onload = function() {
  google.maps.loadScripts();
};
script.onreadystatechange= function () {
  if (this.readyState == 'loaded' || this.readyState == 'complete') {
    google.maps.loadScripts();
  }
};

 google.maps.loadScripts() was for v2 and is not needed in v3.


- Luke


On Sat, Apr 10, 2010 at 6:00 PM, Martin Revert <[email protected]>wrote:

> Basically, what I'm tring to do is to do all (API load, geocoder
> requests, map load, etc) after a submit button.
> That's the only example I found to do it.
> Thanks Esa, maybe Pamela can throw some light about this...
>
> On 10 abr, 20:01, Esa <[email protected]> wrote:
> > It seems the something was changed and the example would need some
> > adjustment.
> >
> > I think it was written by Pamela (keyword).
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to