Re: Load dynamically 'http://maps.google.com/maps/api/js?sensor=false'
I'm using this now:
MEGASENA.utilities.loadScript('http://maps.google.com/maps/api/js?
sensor=false&callback=n');
The callback function " n " does not exist. But 0 errors is fired. But
if i change the callback function to another name, the error fired: "
functionName is not defined ".
Why with the letter " n " the errors don't fired?
On 7 jun, 21:52, Acaz Souza <acazso...@gmail.com> wrote:
> Wow, but in this example:http://www.google.com/url?sa=D&q=http://gmaps-samples-v3.googlecode.c...
>
> with the parameter "callback=CallbackFunctionName" the api works fine
> with dynamically loaded.
>
> it's what i need, but why the api itself in default use document.write
> to load scripts and don't append tag script?
>
> On 7 jun, 13:25, Michael Geary <m...@mg.to> wrote:
>
> > Ah, good point, Andrew, I forgot about the Ajax loader. That is indeed the
> > way to do this instead of rolling your own.
>
> > On Mon, Jun 7, 2010 at 2:03 AM, Andrew Leach <andrew.leac...@gmail.com>wrote:
>
> > > On Jun 7, 5:23 am, Acaz Souza <acazso...@gmail.com> wrote:
> > > > Hi, i'm trying to load dynamically the google maps api javascript and
> > > > i'm failed.
>
> > > Further to Mike's answer: once the document has finished loading,
> > > "document.write" starts a *new* document. The way to do what you want
> > > is to follow the documentation for the AJAX loader:
> > >http://code.google.com/apis/ajax/documentation/
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Maps API" group.
> > > To post to this group, send email to google-maps-api@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-maps-api+unsubscribe@googlegroups.com<google-maps-api%2Bunsubscribe@googlegroups.com>
> > > .
> > > 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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home