Hi Larry-

Thanks for the info. I'll look into it to see if I can get a better
understanding of it all.


On May 19, 11:10 am, "[email protected]" <[email protected]>
wrote:
> On May 19, 7:33 am, Sam-MPA <[email protected]> wrote:
>
>
>
>
>
> > On May 18, 7:44 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > On May 18, 3:43 pm, Ralph Ames <[email protected]> wrote:
>
> > > > >http://sme.peacebabyusa.net/pbusa-website/
> > > > >http://sme.peacebabyusa.net/locator-test/
>
> > > > The second link doesn't call the API script.
>
> > > It is using the jsapi loader:
> > > <script src="http://www.google.com/jsapi?
> > > key=ABQIAAAAvmn5abmJTpRcitYRj05LQBRFuBYZWBQIANRf0jmetS9ojoAv9RSdRUynSde37RI
> > >  rOkWJDDtCerhXSw"
> > > type="text/javascript"></script>
>
> > >   google.load("maps", "2", {callback: initialize});
>
> > > But there are lots of issues with scope and the initialize routine is
> > > called by the body onload, the api loader callback and the search
> > > button click...
> > I'm sorry for sounding a little dumb here... but what you've said is
> > all greek to me.
>
> It is javascript, not greek...
>
> Sorry, I haven't had time to completely analyze the issues.
>
> For an explanation of scope issues:
> Mike Williams' tutorial Javascript Concepts Part 1 
> Scopehttp://econym.org.uk/gmap/scope.htm
>
> Your initialize() function (which creates the map and loads all 1348
> markers) is called in three different places:
> 1. When the page onload event fires
> 2. When the jsapi callback function is called (after the jsapi
> finishes loading the map api code)
> 3. When a user clicks on the "Search Button"
>
>   You probably don't want that.
>
>   Your page can be made to work, but your going to stretch your
> javascript skills.
>
>   -- Larry
>
>
>
> > >   -- Larry- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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