Take a look at this "lazy loading" technique (On-Demand JavaScript):
http://ajaxpatterns.org/On-Demand_Javascript


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mike Williams
Sent: Tuesday, April 28, 2009 12:53 PM
To: [email protected]
Subject: Re: Error while loading Google Maps framework from inside a js
method


I don't think anything like that is going to work.

Either load the Maps API at the start, or use the jsapi loader to load 
it on demand.

http://code.google.com/apis/maps/documentation/index.html#AJAX_Loader

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team





--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to