Your script url is missing an &callback= parameter.  This is the name of the
JS function the API will call onload.  Its presence tells the server you're
loading asynchronously, which requires a slightly different bootstrap.

On 9 Sep 2010 02:02, "devGuy14" <[email protected]> wrote:
> When I call:
>
> var script = window.document.createElement( "script" );
> script.type = 'text/javascript';
> script.src = "http://maps.google.com/maps/api/js?sensor=false";;
> window.document.getElementsByTagName( "head" )
> [ 0 ].appendChild( script );
>
> I get the error:
>
> Error: m.google.maps is undefined
> Source File:
http://maps.gstatic.com/intl/en_us/mapfiles/api-3/2/4a/main.js
> Line: 40
>
> Any ideas what could be causing this?
>
> --
> 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